/* ============ 我的游戏助手 — 移动端 H5 优先响应式 ============ */
:root {
  /* 深紫渐变（柔和不刺眼、铺满全屏、静态不滚动） */
  --bg-1: #1d1542;
  --bg-2: #2a2058;
  --bg-3: #160e30;
  --primary: #7c3aed;
  --primary-2: #5b6ef0;
  --accent: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  /* 统一渐变调性（紫色系 / 橙色启动系，过渡更自然） */
  --purple-grad: linear-gradient(135deg, #8b5cf6, #5b6ef0);
  --orange-grad: linear-gradient(135deg, #fbbf24, #f97316 50%, #ef4444);
  /* 数字统一配色：柔和凸显 */
  --num: #a78bfa;
  /* 文字层级（亮色卡片上，保证强光下对比度） */
  --text-strong: #161a26;
  --text: #2a2f3d;
  --text-muted: #8a90a2;
  --text-light: #f2f4fb;
  /* 卡片 */
  --card-bg: #ffffff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --border: rgba(255, 255, 255, 0.16);
  --radius: 16px;
  --icon-radius: 15px;
  --shadow-card: 0 3px 12px rgba(16, 10, 44, 0.12);
  --shadow-card-hover: 0 10px 26px rgba(16, 10, 44, 0.22);
  --touch-min: 44px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t: .25s;
}

/* ============ 全局重置 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
/* v10 修正：H5 禁止 overscroll 露出 body 背景 / 禁止 iOS 顶部/底部橡皮筋。
   把 body 锁死成 viewport，main 自带滚动条。
   - body 不可滚（避免 H5 在 PWA 顶部下拉时露出深紫渐变背景 + 在底部 overscroll）
   - main 自带 overflow-y: auto，touch-action: pan-y（只允许 main 内纵向滑动）
   - iOS 顶部橡皮筋：position:fixed body + overscroll-behavior: none 双重保险
   注意：iOS PWA 顶部 status bar 由 .topbar 自身的 padding-top 撑出，不受 main 滚动影响。 */
html, body {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-light);
  line-height: 1.6;
  /* 柔和紫色渐变，铺满全屏、不刺眼
     v10-fix：body 是 position:fixed，再加 background-attachment:fixed 会在 iOS Safari
     丢渐变背景（回退白），去掉。body 自己就是 viewport，渐变天然钉死。
     同时加 background-color 兜底深紫，万一渐变丢失也不会变白。 */
  background-color: var(--bg-2);
  background-image: linear-gradient(165deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
  /* 硬性标准①：禁止页面横向滚动条 */
  overflow-x: hidden;
  /* 屏蔽双指缩放/横向滑动手势 + 屏蔽 body 上的纵向 pan（让 main 接管） */
  touch-action: none;
  -ms-content-zooming: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 硬性标准③：屏蔽长按选中文本 / 系统菜单（H5 体验） */
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  user-select: none;
}
/* 仅允许真正需要复制的区域可选中 */
input, textarea, [contenteditable="true"],
.card-foot-mono, .machine-code, .mono.copyable, .copyable, .link-url {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
img { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; display: block; }

/* ============ 背景：柔和紫色渐变 + 低透明度柔光纹理 ============ */
.bg-anim {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  /* 静态柔光（不无限动画，省电/低端机流畅） */
  background:
    radial-gradient(60% 42% at 16% 10%, rgba(139, 92, 246, .30), transparent 60%),
    radial-gradient(55% 40% at 86% 18%, rgba(91, 110, 240, .26), transparent 60%),
    radial-gradient(72% 46% at 50% 102%, rgba(245, 158, 11, .14), transparent 66%);
}
/* 底层柔光纹理（点阵，极低不透明度，提升层次感、不花哨） */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .12;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .7) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 28%, #000 8%, transparent 86%);
  mask-image: radial-gradient(circle at 50% 28%, #000 8%, transparent 86%);
}

/* ============ 顶部导航 ============ */
.topbar {
  /* v10 修正：body 锁死后 sticky 贴在 main 边缘而非 viewport，改为 fixed */
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; padding: 0 14px; padding-top: env(safe-area-inset-top, 0);
  /* 静止时浅透玻璃质感；滚动后由 ::before 实色层(--ts) opacity 渐显接管，零重绘更顺滑 */
  background: rgba(28, 20, 60, 0.30);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(10, 6, 30, 0.30);
}
/* 顶栏实色层：仅 opacity 受 CSS 变量 --ts 控制（GPU 合成，零重绘，滚动顺滑不卡/不花） */
.topbar::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(33, 24, 70, 0.94), rgba(24, 17, 54, 0.72));
  opacity: var(--ts, 0);
  transition: opacity .12s linear;
}
.topbar > * { position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: #fff; letter-spacing: .3px; white-space: nowrap; }
/* 品牌 logo：渐变圆底 + 柔光环 + 悬浮微动 */
.brand-logo {
  position: relative; width: 32px; height: 32px; flex: 0 0 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; color: #fff;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 45%, #6366f1 100%);
  box-shadow: 0 4px 12px rgba(124, 58, 237, .45), inset 0 1px 2px rgba(255, 255, 255, .4);
}
.brand-logo::after {
  content: ''; position: absolute; inset: -3px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, .5), rgba(99, 102, 241, .5));
  filter: blur(7px); opacity: .55; z-index: -1;
}
.brand-logo svg { width: 19px; height: 19px; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.brand-text {
  background: linear-gradient(100deg, #c4b5fd 0%, #f0abfc 45%, #a5b4fc 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #c4b5fd;
  font-weight: 800; letter-spacing: .5px;
}
.topbar-right { display: flex; align-items: center; gap: 8px; }
.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: var(--touch-min); padding: 8px 14px;
  border-radius: 99px; cursor: pointer; font-size: 13px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--border); color: var(--text-light);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  -webkit-user-select: none; user-select: none;
}
.ghost-btn:hover { background: var(--glass-strong); }
.ghost-btn:active { transform: scale(0.96); }
.ghost-btn.block { width: 100%; }
.ghost-btn.sm { padding: 6px 12px; font-size: 13px; flex-shrink: 0; }

/* ============ 主体（移动端优先） ============ */
/* v10 修正：body 锁死后，main 单独成可滚动容器，避免 iOS 顶部/底部橡皮筋露出 body 背景
   v11 修正：main 也设 overscroll-behavior:none，配合 JS touchmove 拦截，
           彻底锁死 iOS 顶部/底部橡皮筋上拉/下拉。 */
main {
  position: fixed; top: 0; bottom: 0;
  /* 大屏（>1040）水平居中；手机端 100% 满宽 */
  left: 0; right: 0;
  max-width: 1040px; margin: 0 auto;
  padding: calc(54px + env(safe-area-inset-top, 0)) 14px 100px;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;        /* v11 调整：允许 main 内部顶/底橡皮筋阻尼回弹，不冒泡到固定 body 背景 */
  touch-action: pan-y;
  z-index: 1;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, .4) transparent;
}
/* 美化 main 滚动条（PC 端可见，移动端隐藏） */
main::-webkit-scrollbar { width: 6px; }
main::-webkit-scrollbar-track { background: transparent; }
main::-webkit-scrollbar-thumb { background: rgba(167, 139, 250, .35); border-radius: 6px; }
main::-webkit-scrollbar-thumb:hover { background: rgba(167, 139, 250, .55); }

/* ============ 顶部标题区 ============ */
.hero { text-align: center; margin: 16px 0 18px; padding: 0 8px; animation: pageIn .45s var(--ease) both; }
.hero-title {
  font-size: 26px; font-weight: 800; letter-spacing: .5px; color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.hero-sub { color: rgba(255, 255, 255, .62); font-size: 13px; margin-top: 6px; letter-spacing: .3px; }

/* 首页精简模式下的提示条 */
.home-hint {
  margin: 18px 4px 4px;
  text-align: center;
  color: rgba(167, 139, 250, .82);
  font-size: 13px;
  letter-spacing: .3px;
  padding: 10px 14px;
  background: rgba(124, 58, 237, .08);
  border: 1px dashed rgba(167, 139, 250, .28);
  border-radius: 12px;
}

/* ============ 分类标签：横向滑动 + 缓冲 ============ */
.cat-bar {
  display: flex; gap: 10px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;            /* iOS 惯性缓冲 */
  scroll-snap-type: x proximity;                /* 滑动吸附缓冲，不生硬 */
  scrollbar-width: none;                        /* Firefox 隐藏滚动条 */
  padding: 4px 14px 10px;
  margin: 0 -14px 14px;                          /* 延展到屏幕边缘，滑动更顺 */
  animation: pageIn .5s var(--ease) both;
}
.cat-bar::-webkit-scrollbar { display: none; }   /* 禁止滚动条显示 */
.cat-chip {
  flex: 0 0 auto; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 16px; border-radius: 99px;
  background: var(--glass); color: rgba(255, 255, 255, .82);
  border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  cursor: pointer; -webkit-user-select: none; user-select: none;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.cat-chip:hover { background: var(--glass-strong); }
.cat-chip:active { transform: scale(.95); }       /* 硬性标准⑦：点击态 */
.cat-chip.on {
  background: var(--purple-grad);
  color: #fff; border-color: transparent;
  /* 微弱外光晕 + 内高光，凸显选中 */
  box-shadow: 0 6px 16px rgba(124, 58, 237, .45), 0 0 0 1px rgba(167, 139, 250, .45), 0 0 18px rgba(124, 58, 237, .38);
}
.cat-icon { font-size: 16px; line-height: 1; display: inline-flex; }
.cat-icon img { width: 20px; height: 20px; object-fit: cover; border-radius: 5px; }
.cat-name { white-space: nowrap; }

/* ============ 游戏卡片网格（手机单列 → 大屏多列） ============ */
.page-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .page-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 980px) { .page-grid { grid-template-columns: repeat(3, 1fr); max-width: 1000px; margin: 0 auto; } }

/* 功能卡片：图文左对齐的 H5 列表卡，整卡可点、悬浮上浮、按压回弹 */
.game-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-bg); color: var(--text);
  border-radius: var(--radius);
  padding: 14px 16px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  will-change: transform;
}
.game-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }   /* 悬浮上浮 */
.game-card:active { transform: translateY(-1px) scale(0.96); box-shadow: var(--shadow-card-hover); }  /* 按压回弹 */
.game-card.locked { opacity: .85; filter: grayscale(.2); }
/* 列表滚动卡片(#sub-grid)不参与自动 cardIn 入场，避免滚动加载批量动画导致卡顿/花屏；
   首批入场由 JS 加 .card-anim 提供，后续滚动批次直接显示。首页网格卡片保留一次性 cardIn 入场。 */
#sub-grid .game-card { animation: none; }
.page-grid .game-card { animation: cardIn .3s var(--ease) both; }
.game-icon {
  width: 58px; height: 58px; flex: 0 0 58px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; border-radius: var(--icon-radius); overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(245, 158, 11, .12));
  box-shadow: 0 2px 8px rgba(124, 58, 237, .16);
}
.game-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.game-body { flex: 1 1 auto; min-width: 0; }       /* 标题+简介归组，便于对齐与截断 */
.game-title { font-size: 16px; font-weight: 700; color: var(--text-strong); line-height: 1.35; }
.game-desc {
  font-size: 13px; color: var(--text-muted); margin-top: 3px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.game-sub { display: inline-block; margin-top: 6px; padding: 2px 9px; font-size: 11px; background: rgba(124, 58, 237, .10); color: #7c3aed; border-radius: 99px; font-weight: 600; }
.game-card.has-link { cursor: pointer; }
.game-card.has-link .game-btn { background: var(--orange-grad); box-shadow: 0 6px 14px rgba(245, 158, 11, .4); }

/* 进入 / 直达 按钮：充足触控区 + 按压反馈 */
.game-btn {
  flex: 0 0 auto; align-self: center;
  min-height: var(--touch-min); min-width: 76px;
  padding: 10px 18px; border: none; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
  background: var(--purple-grad);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(124, 58, 237, .32);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  -webkit-user-select: none; user-select: none; white-space: nowrap;
}
.game-btn:hover { box-shadow: 0 10px 20px rgba(124, 58, 237, .45); }
.game-btn:active { transform: scale(.95); }
.game-btn.locked-btn { background: linear-gradient(90deg, #6b7280, #4b5563); box-shadow: none; }
.link-card-btn { background: var(--orange-grad) !important; }

/* 子目录卡片内的双按钮组 */
.sub-actions { flex: 0 0 auto; display: flex; gap: 6px; }
.sub-actions .ghost-btn {
  flex: 0 0 auto; white-space: nowrap; min-height: 38px; padding: 8px 12px; font-size: 12px;
  background: #f3f4f6; border: 1px solid #e5e7eb; color: #1f2937; border-radius: 12px;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.sub-actions .ghost-btn:hover { background: #e5e7eb; }
.sub-actions .ghost-btn:active { transform: scale(.95); }

/* 启动按钮（小，用于子卡/破解/链接右端） */
.start-btn-sm {
  flex: 0 0 auto; min-height: 38px; padding: 8px 14px;
  border: none; border-radius: 12px; font-size: 12px; font-weight: 700; cursor: pointer;
  background: var(--orange-grad); color: #fff; white-space: nowrap;
  box-shadow: 0 4px 10px rgba(245, 158, 11, .35);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.start-btn-sm:hover { box-shadow: 0 6px 14px rgba(245, 158, 11, .5); }
.start-btn-sm:active { transform: scale(.95); }
.start-btn-sm.block { width: auto; min-width: 96px; }
.start-btn-sm:disabled { opacity: .5; cursor: not-allowed; transform: none; }
/* 等待配置按钮（无 link 卡片，2026-08-02）：浅橙色，可点击，点了弹卡密弹窗 */
.start-btn-sm.waiting {
  background: linear-gradient(135deg, #fde0c5 0%, #f6c89b 100%);
  color: #b85a1a;
  box-shadow: 0 4px 10px rgba(246, 200, 155, .35);
  cursor: pointer;
}
.start-btn-sm.waiting:hover { box-shadow: 0 6px 14px rgba(246, 200, 155, .55); }

/* 列表/子页/首页卡片右下角的小收藏按钮 */
.fav-btn-sm {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: #f5c518; font-size: 18px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}
.fav-btn-sm:hover { background: rgba(245,197,24,.18); }
.fav-btn-sm:active { transform: scale(.92); }
.fav-btn-sm.on { color: #ffd54a; background: rgba(245,197,24,.22); border-color: rgba(245,197,24,.55); }
.fav-btn-sm:disabled { opacity: .5; cursor: not-allowed; }
/* 首页推荐卡片：小收藏角标浮在右上角 */
.hero-slide, .rank-row, .rec-card { position: relative; }
.hero-slide .fav-btn-sm, .rank-row .fav-btn-sm, .rec-card .fav-btn-sm {
  position: absolute; top: 8px; right: 8px; z-index: 6; width: 34px; height: 34px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* ============ 链接型叶子页：百度云链接盒 ============ */
.link-card {
  margin: 18px 14px 0; padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #1f2937; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.link-card-title { font-weight: 600; font-size: 15px; margin-bottom: 10px; color: #111827; }
.link-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 10px 12px; background: #f3f4f6; border-radius: 10px; word-break: break-all; }
.link-url { flex: 1; font-size: 13px; line-height: 1.5; color: #2563eb; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.link-label { font-size: 14px; font-weight: 600; color: #111827; flex-shrink: 0; }
.link-code { flex: 1; font-size: 16px; font-weight: 700; letter-spacing: 1px; color: #ef4444; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.link-hint { margin-top: 10px; font-size: 12px; line-height: 1.5; color: #6b7280; padding: 0 4px; }

/* ============ 独立页面（子目录 / 叶子助手） ============ */
/* banner 同时承担"色块 + 简介容器"两件事：简介叠在色块中央，默认白字 + 深色蒙层保证可读 */
.page-banner {
  position: relative; overflow: hidden;
  width: 100%; max-width: 720px; margin: 0 auto;
  height: 170px; border-radius: 18px;
  background: linear-gradient(135deg, #5a6178, #363b5e);
  background-size: cover; background-position: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  display: flex; align-items: center; justify-content: center;
  padding: 16px 20px;
}
.page-banner.default { background-image: linear-gradient(135deg, var(--primary), var(--accent)); }
/* 视差内层：比相框高出 30%，平移时仍被 overflow:hidden 裁剪，绝不外溢重叠 */
.page-banner-bg {
  position: absolute; left: 0; right: 0; top: -15%; height: 130%;
  background-size: cover; background-position: center;
  z-index: 0; will-change: transform;
}
/* 蒙层：图片 banner 防止太亮、渐变 banner 加强对比；不拦截点击 */
.page-banner-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .32) 100%);
  pointer-events: none;
}
/* 简介文字：浮在蒙层之上、banner 中央；白色字、阴影保证在亮渐变上也清晰 */
.page-banner-intro {
  position: relative; z-index: 1;
  color: #ffffff; text-align: center;
  font-size: 15px; line-height: 1.55;
  font-weight: 600; letter-spacing: .3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 1px rgba(0, 0, 0, .4);
  padding: 0 6px; max-width: 100%;
  word-break: break-word; white-space: pre-wrap;
}
.page-shop { display: block; max-width: 720px; margin: 14px auto 0; background: #363b5e; color: #ffd700; text-align: center; padding: 12px; font-size: 14px; text-decoration: none; border-radius: 12px; }
/* 首页全局公告条（多行：按 \n 分隔）；与 siteRemark 区分用黄色调 */
.home-notice-bar {
  margin: 10px 14px 0;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
  border: 1px solid #ffe1a8;
  border-left: 3px solid #f59e0b;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.65;
  color: #7a5b00;
  box-shadow: 0 2px 8px rgba(245, 158, 11, .08);
}
.home-notice-icon { font-size: 16px; flex-shrink: 0; line-height: 1.5; }
.home-notice-content { flex: 1; min-width: 0; word-break: break-word; }
.home-notice-line + .home-notice-line { margin-top: 2px; }
.init-desc { max-width: 720px; margin: 14px auto 0; background: rgba(255, 255, 255, .06); color: #f3f4f6; padding: 12px 16px; font-size: 13px; line-height: 1.6; border-radius: 12px; border-left: 3px solid #7c3aed; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.init-desc b { color: #fbbf24; }
.init-row { max-width: 720px; margin: 16px auto 0; text-align: center; }
.init-btn {
  width: 100%; padding: 14px 18px; border: none; border-radius: 14px;
  font-size: 15px; font-weight: 700; background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(59, 130, 246, .35);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.init-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(59, 130, 246, .5); }
.init-btn:active { transform: translateY(0) scale(.98); }
.empty-tip-mini { text-align: center; padding: 12px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.page-actions { max-width: 720px; margin: 16px auto 0; display: flex; gap: 10px; }
.page-launch-bottom { max-width: 720px; margin: 24px auto 30px; text-align: center; padding-top: 22px; border-top: 1px dashed rgba(255, 255, 255, .15); }
.page-launch-bottom .start-btn { margin-top: 0; }
.hint-mini { margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ============ 板块 / 开关 / 启动 ============ */
.section-card { position: relative; background: #ffffff; margin: 14px; border-radius: 16px; padding: 18px 16px 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); border: 1px solid rgba(0, 0, 0, .04); overflow: hidden; }
.section-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #7c3aed, #4f46e5); border-radius: 4px 0 0 4px; }
.section-card.section-required::before { background: linear-gradient(180deg, #ef4444, #f59e0b); }
.section-card.section-single::before { background: linear-gradient(180deg, #10b981, #22d3ee); }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed #e5e7eb; }
.section-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title .sec-icon { font-size: 17px; }
.section-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 3px 8px; border-radius: 99px; background: linear-gradient(90deg, #ede9fe, #dbeafe); color: #6d28d9; }
.section-tag.required { background: linear-gradient(90deg, #fee2e2, #fef3c7); color: #b91c1c; }
.section-tag.single { background: linear-gradient(90deg, #d1fae5, #ccfbf1); color: #047857; }
.toggle-item { display: flex; align-items: center; margin-bottom: 8px; gap: 10px; padding: 10px; border-radius: 10px; transition: background var(--t); }
.toggle-item:hover { background: #f9fafb; }
.toggle-item:last-child { margin-bottom: 0; }
.toggle-item .sec-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #c4b5fd; box-shadow: 0 0 0 2px rgba(124, 58, 237, .15); }
.section-required .sec-dot { background: #fca5a5; box-shadow: 0 0 0 2px rgba(239, 68, 68, .15); }
.section-single .sec-dot { background: #6ee7b7; box-shadow: 0 0 0 2px rgba(16, 185, 129, .15); }
.toggle-label { font-size: 14px; font-weight: 500; color: #1f2937; flex: 1; }
.toggle-state { flex-shrink: 0; min-width: 36px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 2px 8px; border-radius: 99px; transition: all var(--t); }
.toggle-state.off { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.toggle-state.on { background: linear-gradient(90deg, #7c3aed, #4f46e5); color: #fff; border: 1px solid transparent; box-shadow: 0 2px 6px rgba(124, 58, 237, .35); }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #d1d5db; transition: var(--t); border-radius: 22px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 2px; bottom: 2px; background: #fff; transition: var(--t); border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
input:checked + .slider { background: linear-gradient(90deg, #7c3aed, #4f46e5); }
input:checked + .slider:before { transform: translateX(18px); }
.start-row { padding: 10px 16px 30px; text-align: center; }
.start-btn {
  background: var(--orange-grad); color: #fff; border: none;
  width: 100%; max-width: 420px; padding: 15px 40px; border-radius: 99px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 24px rgba(245, 158, 11, .45);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.start-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(245, 158, 11, .6); }
.start-btn:active { transform: translateY(0) scale(.98); }

/* ============ 破解游戏专属新排版（仅破解游戏一级分类下的叶子页） ============ */
/* === 破解游戏叶子页 compact 模板 v2：大渐变 banner + 标题白字嵌 banner（参照图 A 视觉） === */
.crack-hero{margin:0;padding:0;text-align:left;animation:pageIn .45s var(--ease) both}
.crack-banner{position:relative;height:208px;border-radius:0 0 26px 26px;overflow:hidden;background:linear-gradient(135deg,#fb7185 0%,#f97316 46%,#7c3aed 100%);box-shadow:0 16px 40px rgba(124,58,237,.28),0 4px 12px rgba(0,0,0,.35)}
.crack-banner.has-bg .crack-banner-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.34;mix-blend-mode:luminosity}
.crack-banner-overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(251,113,133,.22),rgba(124,58,237,.26)),linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.46))}
.crack-banner-badge{position:absolute;top:14px;right:14px;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#7c2d12;font-size:10px;font-weight:800;padding:4px 10px;border-radius:9px;letter-spacing:.5px;z-index:3;box-shadow:0 2px 10px rgba(245,158,11,.45)}
.crack-banner-inner{position:absolute;left:18px;right:18px;bottom:18px;z-index:2}
.crack-banner-head{display:flex;align-items:flex-end;gap:14px}
.crack-banner-avatar{width:68px;height:68px;border-radius:18px;background:linear-gradient(135deg,#fff,#fde7c5);box-shadow:0 10px 26px rgba(0,0,0,.35),inset 0 -3px 0 rgba(124,58,237,.12);display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;border:2px solid rgba(255,255,255,.55)}
.crack-banner-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.crack-banner-avatar .crack-cover-icon-emoji{font-size:36px;line-height:1;font-weight:900;color:#7c3aed}
.crack-banner-text{flex:1;min-width:0}
.crack-banner-tag{display:inline-block;background:rgba(0,0,0,.30);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:3px 10px;border-radius:9px;font-size:11px;font-weight:600;letter-spacing:.4px;margin-bottom:8px;border:1px solid rgba(255,255,255,.16)}
.crack-banner-title{font-size:24px;font-weight:900;color:#fff;line-height:1.25;text-shadow:0 2px 10px rgba(0,0,0,.35);letter-spacing:.5px;margin:0}
.crack-banner-sub{margin-top:7px;font-size:13px;color:rgba(255,255,255,.92);text-shadow:0 1px 5px rgba(0,0,0,.3);line-height:1.5}
.crack-meta{display:flex;align-items:center;gap:10px;padding:14px 16px 14px;font-size:12px;color:rgba(255,255,255,.6)}
.crack-dot{width:3px;height:3px;border-radius:50%;background:rgba(255,255,255,.25)}
.crack-actions{display:flex;gap:8px;align-items:center;padding:0 14px 14px}
.crack-launch{flex:1;height:54px;border:none;border-radius:16px;background:var(--orange-grad);color:#fff;font-size:17px;font-weight:800;letter-spacing:2px;box-shadow:0 10px 26px rgba(245,158,11,.45),inset 0 -2px 0 rgba(0,0,0,.15);display:flex;align-items:center;justify-content:center;gap:7px;position:relative;overflow:hidden}
.crack-launch::after{content:"";position:absolute;top:0;left:-100%;width:60%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent);animation:crack-sheen 3s ease-in-out infinite}
@keyframes crack-sheen{0%,100%{left:-100%}50%{left:130%}}
.crack-launch:active{transform:scale(.985)}
.crack-launch:disabled{opacity:.55;cursor:not-allowed}
.crack-icon-btn{width:54px;height:54px;border-radius:16px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:#fff;font-size:19px;display:flex;align-items:center;justify-content:center;flex-shrink:0;text-decoration:none}
.crack-icon-btn:active{transform:scale(.95)}
.crack-icon-btn.on{color:#fbbf24}
.crack-card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:13px 14px;margin:0 14px 10px}
.crack-card-head{display:flex;align-items:center;gap:8px;margin-bottom:9px}
.crack-card-head .icon{font-size:15px}
.crack-card-head .title{font-size:13px;font-weight:700;letter-spacing:.3px;color:rgba(255,255,255,.85)}
.crack-card-body{font-size:13px;color:rgba(255,255,255,.72);line-height:1.65}
.crack-chips{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap}
.crack-chip{background:linear-gradient(135deg,#a78bfa,#7c3aed);color:#fff;font-size:11px;font-weight:700;padding:3px 10px;border-radius:8px;letter-spacing:.3px}
.crack-features{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.crack-feature{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:11px 6px 10px;text-align:center}
.crack-feature-icon{width:34px;height:34px;border-radius:10px;margin:0 auto 7px;display:flex;align-items:center;justify-content:center;font-size:17px;color:#fff}
.crack-feature.f1 .crack-feature-icon{background:linear-gradient(135deg,#22d3ee,#0ea5e9)}
.crack-feature.f2 .crack-feature-icon{background:linear-gradient(135deg,#a78bfa,#7c3aed)}
.crack-feature.f3 .crack-feature-icon{background:linear-gradient(135deg,#fb7185,#e11d48)}
.crack-feature-name{font-size:11.5px;font-weight:600;color:rgba(255,255,255,.85);letter-spacing:.3px}
@media (max-width:360px){
  .crack-banner{height:184px}
  .crack-banner-title{font-size:22px}
  .crack-banner-avatar{width:56px;height:56px;border-radius:14px}
  .crack-banner-avatar .crack-cover-icon-emoji{font-size:30px}
}

/* ============ 🎲 APP 内置游戏推荐轮播 ============ */
.reco-section {
  margin: 0 16px 30px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 16px 0 12px;
  position: relative;
  overflow: hidden;
}
.reco-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(139, 92, 246, .14), transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(34, 211, 238, .08), transparent 55%);
  pointer-events: none;
}
.reco-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px 10px; position: relative; z-index: 1;
}
.reco-title {
  font-size: 14px; font-weight: 700; color: #fff; letter-spacing: .4px;
  display: flex; align-items: center; gap: 6px;
}
.reco-title::before { content: '🎲'; font-size: 16px; }
.reco-refresh {
  font-size: 12px; color: #c4b5fd;
  background: rgba(139, 92, 246, .18);
  padding: 5px 11px; border-radius: 999px;
  cursor: pointer; border: 0; font-family: inherit;
  transition: transform .18s ease, background .18s ease;
  position: relative; z-index: 1;
}
.reco-refresh:active { transform: scale(.94); background: rgba(139, 92, 246, .32); }
.reco-refresh.spin svg, .reco-refresh.spin { animation: recoSpin .55s ease; }
@keyframes recoSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.reco-track {
  display: flex; gap: 12px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 4px 18px 8px;
  scrollbar-width: none; -ms-overflow-style: none;
  position: relative; z-index: 1;
}
.reco-track::-webkit-scrollbar { display: none; }
.reco-card {
  flex: 0 0 230px;
  scroll-snap-align: start;
  background: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(91, 110, 240, .08));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 12px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor: pointer;
  min-height: 70px;
}
.reco-card:hover { border-color: rgba(139, 92, 246, .45); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(139, 92, 246, .18); }
.reco-card:active { transform: scale(.98); }
.reco-card-icon {
  flex: 0 0 44px; width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; overflow: hidden; position: relative;
  box-shadow: 0 4px 10px rgba(124, 58, 237, .35);
}
.reco-card-icon > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reco-card-icon > .icon-emoji { display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; width: 100%; height: 100%; }
.reco-card-body { flex: 1; min-width: 0; }
.reco-card-title { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.reco-card-cat { font-size: 11px; color: rgba(196, 181, 253, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reco-card-go {
  flex: 0 0 24px; width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(139, 92, 246, .32);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.reco-skel {
  flex: 0 0 230px; height: 70px;
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04));
  background-size: 200% 100%;
  border-radius: 14px;
  animation: recoSkel 1.4s ease-in-out infinite;
}
@keyframes recoSkel { 0% { background-position: 0% 0; } 100% { background-position: -200% 0; } }
.reco-empty { padding: 18px 18px 6px; color: rgba(196, 181, 253, .72); font-size: 13px; text-align: center; position: relative; z-index: 1; }

/* ============ 通用弹窗 ============ */
.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.active { display: flex; animation: fadeIn .2s; }

/* 底部 sheet（抖音式：从下往上滑入） */
.modal.sheet { align-items: flex-end; padding: 0; }
.modal.sheet .modal-card { max-width: none; border-radius: 18px 18px 0 0; animation: sheetIn .28s cubic-bezier(.2, .9, .3, 1); padding-bottom: env(safe-area-inset-bottom); }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-handle { width: 40px; height: 4px; border-radius: 99px; background: rgba(0,0,0,.18); margin: 10px auto 0; }
.sheet-title { text-align: center; font-size: 15px; font-weight: 700; color: #111; padding: 10px 16px 6px; }
.sheet-actions { display: flex; flex-direction: column; padding: 6px 12px 10px; }
.sheet-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px 16px; border: 0; background: #f5f5f7; color: #111;
  font-size: 16px; font-weight: 600; border-radius: 12px; margin-top: 8px;
  cursor: pointer; text-align: left;
}
.sheet-btn:active { background: #e5e5ea; transform: scale(0.99); }
.sheet-btn .ico { font-size: 22px; }
.sheet-cancel {
  display: block; width: calc(100% - 24px); margin: 8px 12px 12px;
  padding: 14px; border: 0; border-radius: 12px; background: #fff; color: #111;
  font-size: 16px; font-weight: 700; cursor: pointer;
}
.sheet-cancel:active { background: #f0f0f3; }
.modal.sheet .modal-head { display: none; } /* sheet 模式不要原 modal 头 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card { width: 100%; max-width: 420px; background: linear-gradient(180deg, #ffffff, #f9fafb); color: var(--text); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: modalIn .3s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes modalIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; font-size: 17px; font-weight: 700; background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; }
.modal-head .x { background: rgba(255, 255, 255, .2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; cursor: pointer; line-height: 1; }
.modal-head .x:hover { background: rgba(255, 255, 255, .35); }
.modal-body { padding: 20px; }
.modal-foot { padding: 12px 16px; border-top: 1px solid #e5e7eb; }
.text { white-space: pre-wrap; line-height: 1.7; font-size: 14px; color: #374151; }
.modal-back-btn { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background var(--t), transform var(--t); z-index: 2; }
.modal-back-btn:hover { background: rgba(255, 255, 255, .3); transform: translateX(-2px); }
.modal-back-btn:active { transform: translateX(-1px) scale(.96); }

/* ============ 表单 / 文本 ============ */
.kv { display: flex; justify-content: space-between; padding: 10px 12px; background: #f3f4f6; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.kv .k { color: #6b7280; }
.kv .v { font-weight: 600; color: #111827; }
.big-link { display: block; text-align: center; padding: 12px; margin-bottom: 14px; background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; font-weight: 700; border-radius: 12px; text-decoration: none; box-shadow: 0 6px 16px rgba(245, 158, 11, .35); }
.big-link:hover { transform: translateY(-1px); }
.notice-mini { background: #fef3c7; color: #92400e; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.machine-box { background: #1f2937; color: #f3f4f6; padding: 14px; border-radius: 12px; margin-bottom: 14px; }
.machine-box.highlight { background: linear-gradient(135deg, #1f2937, #4f46e5); }
.machine-label { font-size: 12px; color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.machine-code { font-family: 'SF Mono', 'Consolas', monospace; font-size: 14px; letter-spacing: 1px; word-break: break-all; }
.machine-code.big { font-size: 16px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.copy-btn { background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); color: #fff; padding: 5px 10px; border-radius: 8px; font-size: 12px; cursor: pointer; }
.copy-btn:hover { background: rgba(255, 255, 255, .25); }
.copy-btn:active { transform: scale(.95); }
.form-row { display: flex; gap: 8px; }
.form-row input { flex: 1; padding: 11px 14px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 14px; outline: none; transition: all var(--t); font-family: 'SF Mono', 'Consolas', monospace; letter-spacing: 1px; }
.form-row input:focus { border-color: #7c3aed; }
.btn-primary { padding: 11px 18px; border: none; border-radius: 10px; background: linear-gradient(90deg, #7c3aed, #4f46e5); color: #fff; font-weight: 600; cursor: pointer; font-size: 14px; box-shadow: 0 4px 12px rgba(124, 58, 237, .35); transition: all var(--t); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(124, 58, 237, .5); }
.btn-primary:active { transform: translateY(0) scale(.97); }
.my-keys { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e5e7eb; }
.my-keys-title { font-size: 13px; color: #6b7280; margin-bottom: 10px; }
.my-key-row { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: #f9fafb; border-radius: 8px; margin-bottom: 6px; font-size: 12px; }
.my-key-game { background: #ede9fe; color: #6d28d9; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.my-key-code { font-family: monospace; color: #111827; flex: 1; }
.my-key-exp { color: #6b7280; }

/* ============ 卡密弹窗（毛玻璃紫灰底） ============ */
.card-mask { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; background: rgba(15, 12, 41, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 16px; animation: cardMaskIn .25s ease; }
@keyframes cardMaskIn { from { opacity: 0; } to { opacity: 1; } }
.card-shell { --card-bg-img: none; width: min(380px, 100%); padding: 36px 28px 22px; border-radius: 26px; background: linear-gradient(160deg, rgba(168, 154, 220, .35), rgba(124, 124, 178, .35)), var(--card-bg-img); background-size: cover; background-position: center; background-blend-mode: overlay; backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25); display: flex; flex-direction: column; align-items: stretch; position: relative; animation: cardShellIn .4s cubic-bezier(.22, 1, .36, 1); }
@keyframes cardShellIn { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.card-title-block { text-align: center; margin-bottom: 22px; }
.card-title { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: 4px; text-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.card-sub { font-size: 12px; color: rgba(255, 255, 255, .7); letter-spacing: 3px; margin-top: 4px; }
.card-announcement { background: rgba(245, 158, 11, .18); border: 1px solid rgba(245, 158, 11, .35); color: #ffd789; padding: 10px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 18px; line-height: 1.6; }
.card-err { background: rgba(239, 68, 68, .22); border: 1px solid rgba(239, 68, 68, .55); color: #ffd0d0; padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.55; margin-bottom: 14px; animation: cardErrShake .35s ease-out; }
.card-err.bound { background: rgba(244, 63, 94, .28); border: 1px solid rgba(244, 63, 94, .65); color: #fff; font-weight: 700; letter-spacing: .5px; }
@keyframes cardErrShake { 0% { transform: translateX(-6px); } 25% { transform: translateX(6px); } 50% { transform: translateX(-4px); } 75% { transform: translateX(4px); } 100% { transform: none; } }
.mono.copyable.lost { color: #f59e0b; }
.card-input { width: 100%; height: 52px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 0 18px; font-size: 16px; letter-spacing: 2px; color: #fff; text-align: center; outline: none; transition: all var(--t); font-family: 'SF Mono', 'Consolas', monospace; }
.card-input::placeholder { color: rgba(255, 255, 255, .45); letter-spacing: 1px; font-family: inherit; }
.card-input:focus { border-color: rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .28); box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.card-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; border: 0; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; user-select: none; transition: all var(--t); text-decoration: none; }
.card-verify { width: 100%; margin-top: 16px; background: #fff; color: #4a3a7a; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.card-verify:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 0, 0, .28); }
.card-verify:active { transform: translateY(0) scale(.98); }
.card-verify:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.card-row-bottom { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.card-row-bottom .card-secondary { width: 100%; height: 48px; border-radius: 14px; }
.card-secondary { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14px; height: 46px; }
.card-secondary:hover { background: rgba(255, 255, 255, .22); }
.card-secondary:active { transform: scale(.98); }
.card-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; color: rgba(255, 255, 255, .6); font-size: 12px; }
.card-foot-label { opacity: .8; }
.card-foot-mono { font-family: 'SF Mono', 'Consolas', monospace; letter-spacing: 2px; user-select: text; -webkit-user-select: text; }

/* ============ 群验证弹窗 ============ */
.group-mask { position: fixed; inset: 0; z-index: 4900; display: flex; align-items: center; justify-content: center; background: rgba(15, 12, 41, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 16px; animation: cardMaskIn .25s ease; }
.group-shell { width: min(380px, 100%); padding: 32px 26px 24px; border-radius: 22px; background: linear-gradient(160deg, rgba(91, 141, 239, .35), rgba(91, 200, 239, .35)); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25); display: flex; flex-direction: column; align-items: stretch; position: relative; animation: cardShellIn .4s cubic-bezier(.22, 1, .36, 1); color: #fff; }
.group-icon { font-size: 38px; text-align: center; margin-bottom: 10px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .3)); }
.group-icon-img { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 auto 10px; border-radius: 12px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .3)); }
.group-title { font-size: 22px; font-weight: 800; text-align: center; letter-spacing: 3px; text-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.group-sub { font-size: 12px; color: rgba(255, 255, 255, .75); text-align: center; margin-top: 4px; letter-spacing: 1px; }
.group-notice { background: rgba(245, 158, 11, .18); border: 1px solid rgba(245, 158, 11, .35); color: #ffd789; padding: 10px 14px; border-radius: 12px; font-size: 13px; margin-top: 16px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.group-info { margin-top: 16px; padding: 12px 14px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.group-info-row { display: flex; gap: 12px; align-items: baseline; font-size: 13px; }
.group-info-row .gik { color: rgba(255, 255, 255, .55); flex: 0 0 64px; }
.group-info-row .giv { color: #fff; flex: 1; word-break: break-all; }
.group-info-row .giv.mono { font-family: 'SF Mono', 'Consolas', monospace; letter-spacing: 1px; }
.group-info-row a.giv { color: #b8d3ff; text-decoration: underline; }
.group-qq-block { margin-top: 14px; }
.group-qq-block .gik { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); margin-bottom: 6px; }
.group-number-display { width: 100%; padding: 14px 16px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; text-align: center; font-family: 'SF Mono', 'Consolas', monospace; font-size: 26px; font-weight: 800; letter-spacing: 4px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.group-input { width: 100%; height: 46px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 0 16px; font-size: 16px; letter-spacing: 1px; color: #fff; text-align: center; outline: none; transition: all var(--t); font-family: 'SF Mono', 'Consolas', monospace; }
.group-input::placeholder { color: rgba(255, 255, 255, .45); }
.group-input:focus { border-color: rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .32); box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.group-err { background: rgba(239, 68, 68, .22); border: 1px solid rgba(239, 68, 68, .55); color: #ffd0d0; padding: 10px 14px; border-radius: 12px; font-size: 13px; margin-top: 12px; animation: cardErrShake .35s ease-out; }
.group-actions { display: flex; gap: 10px; margin-top: 18px; flex-direction: column; }
.group-actions-single { margin-top: 24px; }
.group-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; border: 0; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; user-select: none; transition: all var(--t); text-decoration: none; width: 100%; }
.group-primary { background: #fff; color: #2a4a8a; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.group-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 0, 0, .28); }
.group-primary:active { transform: translateY(0) scale(.98); }
.group-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.group-secondary { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.group-secondary:hover { background: rgba(255, 255, 255, .22); }
.group-secondary:active { transform: scale(.98); }

/* ============ 黑色注入弹窗（算法注入动画，纯黑终端风） ============ */
.inject-mask { position: fixed; inset: 0; z-index: 6000; background: #000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: injectIn .2s ease; }
@keyframes injectIn { from { opacity: 0; } to { opacity: 1; } }
.inject-shell { width: min(360px, 100%); }
.inject-title { color: #00ff9c; font-size: 15px; font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; font-family: 'SF Mono', 'Consolas', monospace; }
.inject-sub { color: #6b7280; font-size: 12px; margin-bottom: 16px; font-family: 'SF Mono', 'Consolas', monospace; }
.inject-log { font-family: 'SF Mono', 'Consolas', monospace; font-size: 12px; line-height: 1.8; min-height: 132px; color: #34d399; white-space: pre-wrap; word-break: break-all; }
.inject-bar { height: 4px; background: #1a1a1a; border-radius: 99px; overflow: hidden; margin-top: 14px; }
.inject-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #00ff9c, #22d3ee); transition: width .1s linear; }

/* ============ Toast ============ */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); background: rgba(17, 24, 39, .92); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 13px; z-index: 9999; opacity: 0; pointer-events: none; transition: all var(--t); max-width: 86vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: linear-gradient(90deg, #10b981, #059669); }

/* ============ Loading ============ */
.loading-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; }
.loading-modal.active { display: flex; }
.loading-modal .spinner { width: 48px; height: 48px; border: 4px solid rgba(255, 255, 255, .2); border-top-color: #a78bfa; border-radius: 50%; animation: spin 1s linear infinite; }
.loading-modal .loading-text { color: #fff; margin-top: 16px; font-size: 15px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 启动入场动画层 ============ */
.boot { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: linear-gradient(165deg, var(--bg-1), var(--bg-2)); transition: opacity .4s ease; }
.boot.hide { opacity: 0; pointer-events: none; }
.boot-spin { width: 46px; height: 46px; border: 4px solid rgba(255, 255, 255, .18); border-top-color: #a78bfa; border-radius: 50%; animation: spin 1s linear infinite; }
.boot-text { color: rgba(255, 255, 255, .7); font-size: 14px; letter-spacing: 1px; }

.empty-tip { text-align: center; padding: 60px 20px; color: rgba(255, 255, 255, .6); font-size: 14px; grid-column: 1 / -1; }
.empty-tip a { color: #f59e0b; cursor: pointer; text-decoration: underline; margin: 0 4px; }

/* 入场动画关键帧（页面/卡片淡入上移） */
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============ 子目录页搜索框 ============ */
.sub-search-wrap { position: relative; max-width: 560px; margin: 0 auto 18px; padding: 0 14px; display: flex; align-items: center; gap: 10px; }
.sub-search-ico { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); color: #8a93a6; font-size: 15px; pointer-events: none; z-index: 1; }
.sub-search { flex: 1; min-width: 0; width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px 16px 12px 42px; color: #e8ecf4; font-size: 15px; outline: none; -webkit-appearance: none; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .28); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.sub-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.sub-search::placeholder { color: #6b7388; }
.sub-search:focus { border-color: rgba(167, 139, 250, .65); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .28), 0 0 0 3px rgba(124, 58, 237, .22); }
.sub-search-count { flex-shrink: 0; margin-left: auto; color: var(--num); font-size: 12px; font-weight: 600; white-space: nowrap; }

/* ============ 硬性标准⑦：低端机/无障碍——降级动画 ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
/* 超窄屏：子卡双按钮纵向堆叠，避免挤压 */
@media (max-width: 360px) {
  .sub-actions { flex-direction: column; }
  .hero-title { font-size: 23px; }
}

/* ============ v10 应用宝式分区布局（首页横幅泳道 + 板块宫格 + 列表页网格模式） ============ */
/* —— 板块区块 —— */
.hs-section { margin: 20px 0 6px; animation: pageIn .45s var(--ease) both; }
.hs-banner-wrap { margin: 6px 0 2px; animation: pageIn .45s var(--ease) both; }
.hs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.hs-title { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: .3px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.hs-title-ico { font-size: 18px; line-height: 1; display: inline-flex; }
.hs-title-ico img { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; }
.hs-count { font-size: 11px; font-weight: 700; color: var(--num, #a78bfa); background: rgba(139, 92, 246, .16); border: 1px solid rgba(167, 139, 250, .3); padding: 2px 8px; border-radius: 999px; }
.hs-more { flex: none; font-size: 12px; font-weight: 600; color: #c4b5fd; background: rgba(139, 92, 246, .14); border: 1px solid rgba(167, 139, 250, .32); padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.hs-more:hover { background: rgba(139, 92, 246, .28); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124, 58, 237, .3); }
.hs-more:active { transform: scale(.95); }

/* —— 横幅推荐泳道 —— */
.hs-banner { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hs-banner::-webkit-scrollbar { display: none; }
.hs-bn-card {
  flex: 0 0 76%; max-width: 300px; min-height: 108px; scroll-snap-align: start;
  display: flex; align-items: center; gap: 12px; padding: 16px 14px;
  border-radius: 18px; cursor: pointer; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(139, 92, 246, .42), rgba(91, 110, 240, .26)), var(--bg-2, #2a2058);
  border: 1px solid rgba(167, 139, 250, .32);
  box-shadow: var(--shadow-card, 0 3px 12px rgba(16, 10, 44, .18));
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.hs-bn-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(76, 40, 160, .4); }
.hs-bn-card:active { transform: translateY(-1px) scale(.98); }
.hs-bn-icon { flex: none; width: 56px; height: 56px; border-radius: var(--icon-radius, 15px); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 30px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.hs-bn-icon img { width: 100%; height: 100%; object-fit: cover; }
.hs-bn-body { flex: 1; min-width: 0; }
.hs-bn-title { font-size: 15.5px; font-weight: 800; color: #fff; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-bn-desc { font-size: 12px; color: rgba(255, 255, 255, .6); margin-top: 5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-bn-card .g-btn { flex: none; }
@media (min-width: 900px) { .hs-bn-card { flex-basis: 300px; } }

/* —— 宫格小卡片：手机 2 列 / PC 4 列 —— */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid2 { grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1000px; margin: 0 auto; } }
.g-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 16px 10px 14px; border-radius: 16px; cursor: pointer; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035));
  border: 1px solid rgba(167, 139, 250, .2);
  box-shadow: var(--shadow-card, 0 3px 12px rgba(16, 10, 44, .18));
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.g-card:hover { transform: translateY(-3px); border-color: rgba(167, 139, 250, .45); box-shadow: 0 10px 24px rgba(76, 40, 160, .35); }
.g-card:active { transform: translateY(-1px) scale(.97); }
.g-icon { width: 58px; height: 58px; border-radius: var(--icon-radius, 15px); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 31px; background: rgba(139, 92, 246, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.g-icon img { width: 100%; height: 100%; object-fit: cover; }
.g-name { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: .2px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.g-desc { font-size: 11.5px; color: rgba(255, 255, 255, .55); line-height: 1.4; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 16px; }
.g-meta { font-size: 10.5px; color: var(--num, #a78bfa); min-height: 14px; }
.g-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: #fff; letter-spacing: .3px;
  padding: 7px 18px; border-radius: 999px; border: none; margin-top: 4px;
  background: var(--purple-grad, linear-gradient(135deg, #8b5cf6, #5b6ef0));
  box-shadow: 0 5px 14px rgba(124, 58, 237, .4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.g-btn.orange { background: var(--orange-grad, linear-gradient(135deg, #fbbf24, #f97316 50%, #ef4444)); box-shadow: 0 5px 14px rgba(245, 158, 11, .4); }
.g-card:hover .g-btn { transform: translateY(-1px); }

/* —— 列表页模式 B：网格图文卡片（保留原单列模式 A 全部样式） —— */
.page-grid.mode-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .page-grid.mode-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .page-grid.mode-grid { grid-template-columns: repeat(4, 1fr); max-width: 1000px; margin: 0 auto; } }
.game-card.gmode { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 10px 14px; }
.game-card.gmode .game-icon { width: 62px; height: 62px; font-size: 33px; border-radius: var(--icon-radius, 15px); }
.game-card.gmode .game-body { width: 100%; }
.game-card.gmode .game-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card.gmode .game-desc { font-size: 11.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 16px; white-space: normal; }
.game-card.gmode .game-sub { justify-content: center; }
.game-card.gmode .start-btn-sm.block { width: 100%; margin-top: 2px; }
.game-card.gmode .sub-actions { width: 100%; flex-direction: row; gap: 8px; }
.game-card.gmode .sub-actions .ghost-btn, .game-card.gmode .sub-actions .start-btn-sm { flex: 1; padding-left: 6px; padding-right: 6px; font-size: 12px; }
@media (max-width: 360px) { .game-card.gmode .sub-actions { flex-direction: column; } }

/* ============ 首页推荐区：对标应用宝 ============ */
.home-rec-wrap { padding: 4px 0 24px; }
.home-rec { margin: 14px 0 18px; animation: pageIn .5s var(--ease) both; }
.rec-title {
  text-align: center;
  font-size: 16px; font-weight: 800;
  color: #fff;
  margin: 6px 0 12px;
  letter-spacing: 1px;
  position: relative;
}
.rec-title::before, .rec-title::after {
  content: ''; display: inline-block;
  width: 42px; height: 2px;
  vertical-align: middle; margin: 0 12px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,.9));
  border-radius: 2px;
}
.rec-title::after { background: linear-gradient(90deg, rgba(167,139,250,.9), transparent); }

/* 顶部大轮播 */
.hero-banner {
  position: relative;
  margin: 0 14px;
  border-radius: 14px;
  overflow: hidden;
  height: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.hero-banner-track {
  display: flex;
  height: 100%;
  width: 800%; /* 8 slides */
  transition: transform .6s cubic-bezier(.6,.05,.25,1);
}
.hero-slide {
  flex: 0 0 calc(100% / 8);
  height: 100%;
  width: calc(100% / 8);
  position: relative;
  text-decoration: none;
  display: block;
  background: #1a1a2e;  /* 兜底深色：图片未加载完/缺失时也有干净背景 */
  overflow: hidden;
}
.hero-slide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: linear-gradient(135deg, #2d1b69 0%, #1a1a2e 100%);  /* 加载前深紫渐变 */
  transition: transform .8s ease;
}
.hero-slide:hover .hero-slide-img { transform: scale(1.05); }
.hero-slide-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.78) 100%);
}
.hero-slide-info {
  position: absolute;
  left: 14px; right: 14px;
  bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.hero-slide-title {
  color: #fff; font-size: 16px; font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 60%;
}
.hero-slide-btn {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(245,158,11,.4);
  flex: 0 0 auto;
}
.hero-banner-dots {
  position: absolute;
  bottom: 5px; left: 0; right: 0;
  text-align: center;
  z-index: 2;
}
.hero-dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin: 0 3px;
  border-radius: 3px;
  background: rgba(255,255,255,.4);
  border: 0; padding: 0; cursor: pointer;
  transition: all .3s ease;
}
.hero-dot.on {
  width: 20px;
  background: #fff;
}

/* 三栏榜单 */
.rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 0 14px;
}
.rank-col {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 8px 6px;
}
.rank-col-title {
  text-align: center;
  font-size: 12.5px; font-weight: 700;
  color: #a78bfa;
  padding: 4px 0 8px;
  margin-bottom: 4px;
  border-bottom: 1px dashed rgba(167,139,250,.25);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 4px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: background .2s ease;
}
.rank-row:hover { background: rgba(255,255,255,.05); }
.rank-row:active { transform: scale(.97); }
.rank-pos {
  width: 18px; height: 18px;
  font-size: 11px; font-weight: 700; line-height: 18px;
  text-align: center; border-radius: 4px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  flex: 0 0 auto;
}
.rank-pos.rank-1 { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.rank-pos.rank-2 { background: linear-gradient(135deg, #f59e0b, #fb923c); color: #fff; }
.rank-pos.rank-3 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.rank-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  background: rgba(255,255,255,.06);
}
.rank-info { flex: 1; min-width: 0; }
.rank-title {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.92);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-type {
  font-size: 10px;
  color: rgba(255,255,255,.4);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-open {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 10.5px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(245,158,11,.35);
}

/* 横滑大图卡片 */
.rec-row-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 14px 10px;
  margin: 0 -14px 6px;
  scroll-snap-type: x proximity;
}
.rec-row-track::-webkit-scrollbar { display: none; }
.rec-card {
  flex: 0 0 130px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  background: rgba(255,255,255,.05);
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .25s ease;
}
.rec-card:hover { transform: translateY(-3px); }
.rec-card:active { transform: scale(.97); }
.rec-card-img {
  width: 100%; height: 170px;
  background: linear-gradient(135deg, #2d1b69 0%, #1a1a2e 100%);
  position: relative;
  overflow: hidden;
}
.rec-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s ease;
}
.rec-card:hover .rec-card-img img { transform: scale(1.08); }
.rec-card-mask {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85) 100%);
  padding: 18px 8px 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.rec-card-name {
  color: #fff; font-size: 12.5px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rec-card-btn {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(245,158,11,.35);
}

/* 回到顶部 */
#back-top-fab {
  position: fixed;
  right: 14px; bottom: 80px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124,58,237,.9), rgba(167,139,250,.9));
  color: #fff; font-size: 22px; font-weight: 700;
  border: 0;
  box-shadow: 0 6px 18px rgba(124,58,237,.5);
  z-index: 99;
  cursor: pointer;
  display: none;
  transition: transform .2s ease;
}
#back-top-fab.show { display: flex; align-items: center; justify-content: center; }
#back-top-fab:active { transform: scale(.9); }

@media (max-width: 480px) {
  .rank-grid { grid-template-columns: 1fr; }
  .hero-banner { height: 160px; }
  .rec-card { flex: 0 0 120px; }
  .rec-card-img { height: 150px; }
}

/* ===== 底部导航 ===== */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 22px;
  height: 56px;
  display: flex;
  background: rgba(20, 18, 35, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bn-item {
  flex: 1;
  border: none;
  background: transparent;
  color: #9aa0b5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  cursor: pointer;
  padding: 4px 0;
}
.bn-item .bn-ico { width: 28px; height: 28px; line-height: 1; display: block; object-fit: contain; filter: grayscale(0.3) brightness(0.95); transition: filter .25s ease, transform .25s ease; }
.bn-item .bn-ico-active { display: none; }
.bn-item.active { color: #c4b5fd; }
.bn-item.active .bn-ico-normal { display: none; }
.bn-item.active .bn-ico-active { display: block; transform: translateY(-1px); }
.bn-item.active .bn-ico { filter: none; }
.bn-item:active { transform: scale(0.96); }
/* ICP 备案底栏 */
.icp-footer {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 22px; line-height: 22px;
  background: rgba(20, 18, 35, 0.98);
  text-align: center;
  font-size: 10px; color: #6a6f82;
  z-index: 250;
  padding-bottom: env(safe-area-inset-bottom, 0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.icp-footer a { color: #7c8aff; text-decoration: none; }
.icp-footer .icp-org { margin-left: 6px; opacity: .6; }
/* ICP 备案：移动端（H5）隐藏，电脑端正常显示 */
@media (max-width: 768px) {
  .icp-footer { display: none; }
}
/* 搜索结果来源标签 */
.game-cat-tag {
  display: inline-block; margin-top: 4px;
  font-size: 11px; color: #7c8aff;
  background: rgba(124,92,255,0.12);
  padding: 1px 7px; border-radius: 8px;
}
/* 主区域留出底部导航空间 */
#page-root { padding-bottom: 72px; }

/* ===== 游戏分类竖排列表 ===== */
.cat-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 6px; }
.cat-list-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  color: #e8e8f0;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
}
.cat-list-row:active { background: rgba(124,92,255,0.18); }
.cat-list-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 30px; }
.cat-list-icon img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.cat-list-name { flex: 1; font-weight: 600; }
.cat-list-arrow { color: #6b7088; font-size: 20px; }

/* ===== 「游戏分类」tab 网格版 ===== */
.cats-page-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 14px; animation: pageIn .4s var(--ease) both; }
.cats-page-title { font-size: 22px; font-weight: 800; color: var(--text-strong); letter-spacing: .5px; }
.cats-search-btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--text-light); font-size: 13px; cursor: pointer; transition: background var(--t), transform var(--t); -webkit-tap-highlight-color: transparent; }
.cats-search-btn:active { transform: scale(.96); background: rgba(255,255,255,.12); }

.cats-grid-section { display: flex; flex-direction: column; gap: 12px; padding: 4px 14px 28px; animation: pageIn .45s var(--ease) both; }
.cats-row { display: grid; gap: 12px; }
.cats-row:not(.cats-row-full) { grid-template-columns: 1fr 1fr; }
.cats-row-full { grid-template-columns: 1fr; }

.cats-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 172px; padding: 18px 14px; border-radius: 20px; border: 0; cursor: pointer; color: #fff; background: linear-gradient(160deg, var(--cat-c1, #4a8ad0) 0%, var(--cat-c2, #285890) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 24px rgba(0,0,0,.28); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); text-align: center; -webkit-tap-highlight-color: transparent; }
.cats-card:active { transform: translateY(1px) scale(.99); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 14px rgba(0,0,0,.32); }
.cats-card-icon { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); font-size: 30px; }
.cats-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.cats-card-name { font-size: 16px; font-weight: 700; letter-spacing: .3px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.cats-card-count { font-size: 13px; font-weight: 600; opacity: .92; }

/* 全宽那张稍大（参考样式：图标更大、整体更高） */
.cats-card-full { min-height: 190px; }
.cats-card-full .cats-card-icon { width: 68px; height: 68px; }

/* ===== 全站游戏搜索弹窗（居中卡片式） ===== */
.gsearch-mask { position: fixed; inset: 0; z-index: 99998; background: rgba(8,4,24,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: np-fade .25s ease; }
.gsearch-sheet { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: min(78vh, 640px); background: linear-gradient(180deg, rgba(40,28,72,.96), rgba(26,18,52,.96)); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.45); overflow: hidden; animation: np-pop .25s ease; }
.gsearch-bar { display: flex; align-items: center; gap: 10px; padding: 14px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); flex: 0 0 auto; }
.gsearch-go { flex: 0 0 auto; background: rgba(139,92,246,.9); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #fff; font-size: 17px; padding: 9px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s, transform .1s; }
.gsearch-go:active { background: rgba(139,92,246,1); transform: scale(.96); }
.gsearch-bar input { flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 14px; color: #fff; font-size: 15px; outline: none; -webkit-appearance: none; }
.gsearch-bar input::placeholder { color: rgba(255,255,255,.45); }
.gsearch-close { background: transparent; border: 0; color: var(--text-light); font-size: 15px; padding: 6px 10px; cursor: pointer; }
.gsearch-list { flex: 1; overflow-y: auto; padding: 8px 14px calc(20px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.gsearch-empty { text-align: center; color: var(--text-muted); padding: 40px 16px; font-size: 14px; }
.gsearch-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); margin-bottom: 8px; cursor: pointer; transition: background var(--t), transform var(--t); -webkit-tap-highlight-color: transparent; }
.gsearch-item:active { transform: scale(.985); background: rgba(255,255,255,.1); }
.gsearch-item-icon { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgba(139,92,246,.18); flex: 0 0 44px; font-size: 22px; }
.gsearch-item-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.gsearch-item-body { flex: 1; min-width: 0; }
.gsearch-item-title { font-size: 14px; font-weight: 600; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsearch-item-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsearch-item-go { flex: 0 0 auto; color: rgba(139,92,246,.95); font-size: 13px; font-weight: 600; padding-left: 4px; }
@keyframes np-pop { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ===== 短视频 ===== */
.video-feed { display: flex; flex-direction: column; gap: 14px; padding: 6px 0; }
.video-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #15131f;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}
.video-cover {
  width: 100%; height: 200px;
  background-size: cover; background-position: center;
  background-color: #0e0c17;
  position: relative;
}
.video-cover-ph { display: flex; align-items: center; justify-content: center; color: #3a3750; font-size: 48px; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; padding-left: 4px;
}
.video-meta { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.video-acc-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 34px; background:#2a2740; }
.video-acc-avatar.ph { display:flex; align-items:center; justify-content:center; background:#7c5cff; color:#fff; font-weight:700; }
.video-info { min-width: 0; }
.video-title { color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-acc { color: #9aa0b5; font-size: 12px; }
.video-desc { color: #c0c0d0; font-size: 13px; padding: 0 12px 12px; line-height: 1.5; }

/* ===== 已购游戏 / 浏览记录 通用行 ===== */
.hist-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.hist-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 14px;
  color: #e8e8f0;
  text-decoration: none;
}
.hist-row:active { background: rgba(124,92,255,0.18); }
.hist-icon { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: 0 0 40px; background:#2a2740; }
.hist-name { flex: 1; font-weight: 600; font-size: 14px; }
.hist-time { color: #8a8fa8; font-size: 12px; flex: 0 0 auto; }

/* ===== 我的 ===== */
.mine-head {
  background: linear-gradient(135deg, rgba(124,92,255,0.25), rgba(60,40,120,0.15));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  margin-bottom: 16px;
}
.mine-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: #b9a7ff;
}
.mine-avatar svg { width: 40px; height: 40px; }
.mine-name { font-size: 22px; font-weight: 800; color: #fff; margin: 4px 0 14px; cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 8px; text-align: center; }
.mine-head .mine-name { display: block; text-align: center; }
.mine-name:hover { color: #c4b5fd; }
.mine-name-edit { font-size: 13px; opacity: 0.5; transition: opacity .2s; }
.mine-name:hover .mine-name-edit { opacity: 0.95; }
.mine-ids { display: flex; flex-direction: column; gap: 8px; }
.mine-id-row { display: flex; align-items: center; gap: 8px; justify-content: center; }
.mine-id-lbl { color: #b9a7ff; font-size: 13px; flex: 0 0 52px; text-align: right; }
.mine-id-val { color: #fff; font-size: 12px; font-family: monospace; background: rgba(0,0,0,0.3); padding: 3px 8px; border-radius: 6px; flex: 1; text-align: left; word-break: break-all; max-width: 190px; }

/* 头像 + 我的账号 合并为一个模块（2026-07-31） */
.mine-head-acc { padding: 22px 16px 18px; }
.mine-acc-inner { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.10); text-align: left; }
.mine-acc-hd { font-size: 15px; font-weight: 700; color: #f1f5f9; letter-spacing: .3px; }
.mine-acc-inner .acc-card { margin-top: 10px; }
.mine-acc-inner .acc-tip { text-align: left; }

/* 设备信息块：由头像区下移到页面最底部（2026-07-31） */
.mine-ids-section { margin-top: 14px; }
.mine-ids-section .mine-ids { margin-top: 10px; }
.mine-ids-section .mine-id-row { justify-content: flex-start; }
.mine-ids-section .mine-id-lbl { text-align: left; }
.mine-ids-section .mine-id-val { max-width: none; }
.mine-ids-tip { margin-top: 10px; font-size: 12px; line-height: 1.6; color: #9aa0b5; }
/* 折叠（2026-07-31 用户要求默认收起） */
.mine-ids-section .ids-toggle { cursor: pointer; display: flex; align-items: center; justify-content: space-between; user-select: none; -webkit-tap-highlight-color: transparent; }
.mine-ids-section .ids-arrow { font-size: 14px; color: #b9a7ff; transition: transform .22s ease; margin-left: 8px; }
.mine-ids-section .ids-arrow.open { transform: rotate(180deg); }
.mine-ids-body { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .28s ease, opacity .2s ease; }
.mine-ids-body.open { max-height: 320px; opacity: 1; }

/* 我的 - 入口卡片（浏览记录 / 收藏），可点进独立页 */
.mine-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  color: #e8e8f0;
  text-decoration: none;
  cursor: pointer;
  margin-top: 10px;
}
.mine-card:active { background: rgba(124,92,255,0.18); }
/* 「帮助与说明」里的入口用的是 <button>，需要抹平浏览器默认按钮样式，才能和 <a> 版长得一样 */
button.mine-card {
  width: 100%;
  font: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}
.mine-card-ico { font-size: 22px; flex: 0 0 28px; text-align: center; }
.mine-card-name { flex: 1; font-weight: 600; font-size: 15px; }
.mine-card-badge {
  font-size: 12px; color: #b9a7ff;
  background: rgba(124,92,255,0.15);
  padding: 3px 10px; border-radius: 999px; flex: 0 0 auto;
}
.mine-card-arrow { color: #8a8fa8; font-size: 20px; flex: 0 0 auto; }
.sync-btn { display: block; width: calc(100% - 36px); margin: 10px 18px 4px; padding: 13px 14px; background: linear-gradient(135deg, #0bbbd6, #1e8fe0); color: #fff; border: none; border-radius: 14px; font-size: 15px; font-weight: 700; letter-spacing: .5px; cursor: pointer; box-shadow: 0 6px 16px rgba(11,187,214,0.32); }
.sync-btn:active { transform: scale(0.98); }
.sync-btn:disabled { opacity: 0.6; cursor: default; }
/* 跨手机同步（设备码）：独立入口，紫色渐变与上面的同步数据区分 */
.sync-btn-cross { margin-top: 8px; background: linear-gradient(135deg, #8a5cff, #5b6ef0); box-shadow: 0 6px 16px rgba(138, 92, 255, 0.28); }

/* 子页面返回 */
.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: none; color: #b9a7ff;
  font-size: 14px; cursor: pointer; padding: 8px 0; margin-bottom: 8px;
}
.back-link:active { opacity: .7; }

/* 收藏高亮按钮 */
.ghost-btn.on { color: #ffcf5c; border-color: rgba(255,207,92,0.5); background: rgba(255,207,92,0.12); }
/* 收藏列表里「取消收藏」按钮与跳转链接并排 */
.hist-row .hist-go { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.hist-row .hist-go .hist-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ===== v12: 头像编辑 + VIP 红色闪光 + 跨浏览器访问记录 ===== */
.mine-avatar-wrap { position: relative; display: inline-block; cursor: pointer; }
.mine-avatar-img, .mine-avatar-wrap .mine-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #a855f7 100%); display: inline-flex; align-items: center; justify-content: center; color: #ffffff; box-shadow: 0 6px 22px rgba(124,92,255,0.45); border: 3px solid rgba(255,255,255,0.85); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.mine-avatar-wrap:active .mine-avatar-img { transform: scale(0.96); box-shadow: 0 3px 12px rgba(124,92,255,0.35); }
.mine-avatar-wrap .mine-avatar svg { width: 50px; height: 50px; }
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; image-orientation: from-image; }
.avatar-fb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; }
.avatar-fb svg { width: 50%; height: 50%; }
.icon-file-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* VIP 段：红色大字体 + 闪光 */
.mine-vip-section { background: linear-gradient(135deg, rgba(220,38,38,0.10), rgba(244,63,94,0.08)); border: 1px solid rgba(255,99,99,0.18); border-radius: 14px; padding: 14px 16px; margin-top: 14px; }
.vip-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: linear-gradient(135deg, rgba(127,29,29,0.35), rgba(153,27,27,0.25)); border: 1px solid rgba(255,99,99,0.35); border-radius: 12px; margin-top: 8px; position: relative; overflow: hidden; }
.vip-badge { font-size: 22px; font-weight: 800; color: #ff3838; text-align: center; letter-spacing: 1px; position: relative; display: inline-block; padding: 6px 14px; text-shadow: 0 0 12px rgba(255,56,56,0.65), 0 0 22px rgba(255,99,99,0.35); animation: vip-pulse 1.6s ease-in-out infinite; }
.vip-shine { position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); animation: vip-shine 2.4s linear infinite; pointer-events: none; }
.vip-meta { color: #fecaca; font-size: 13px; text-align: center; }
.vip-meta b { color: #fff; font-weight: 700; }
.vip-empty { color: #cbd5e1; text-align: center; padding: 14px; font-size: 13px; background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.12); border-radius: 10px; }
@keyframes vip-pulse { 0%,100% { transform: scale(1); text-shadow: 0 0 12px rgba(255,56,56,0.65), 0 0 22px rgba(255,99,99,0.35); } 50% { transform: scale(1.06); text-shadow: 0 0 22px rgba(255,56,56,0.95), 0 0 38px rgba(255,99,99,0.6); } }
@keyframes vip-shine { 0% { left: -100%; } 60%,100% { left: 200%; } }

/* 跨浏览器访问记录 */
.device-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.device-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.device-browser { font-weight: 700; color: #fff; }
.device-id-mini { color: #9aa0b5; font-family: monospace; font-size: 11px; background: rgba(0,0,0,0.3); padding: 1px 6px; border-radius: 4px; }
.device-card-line { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: #cbd5e1; }

/* 同步状态行 */
.sync-status { padding: 0 18px 14px; font-size: 13px; }
.sync-tip { padding: 8px 12px; border-radius: 8px; margin-top: 8px; font-size: 13px; line-height: 1.6; }
.sync-tip.ok { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.sync-tip.err { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.sync-tip.warn { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.sync-tip { background: rgba(124,92,255,0.10); color: #c4b5fd; border: 1px solid rgba(124,92,255,0.25); }

/* 跨手机同步弹窗（v13：简洁 APP 弹窗） */
#cp-modal .cp-card { max-width: 360px; }
#cp-modal .cp-input {
  width: 100%; box-sizing: border-box;
  padding: 14px 16px; font-size: 16px; line-height: 1.4;
  border: 1.5px solid #e5e7eb; border-radius: 12px;
  background: #f9fafb; color: #111827;
  letter-spacing: 1px; text-align: center; font-weight: 600;
  outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
#cp-modal .cp-input::placeholder { color: #9ca3af; font-weight: 400; letter-spacing: 0; }
#cp-modal .cp-input:focus { border-color: #7c3aed; background: #fff; box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
#cp-modal .cp-hint { margin-top: 8px; font-size: 12px; color: #6b7280; text-align: center; }
#cp-modal .cp-tip { margin-top: 10px; min-height: 18px; font-size: 13px; line-height: 1.5; text-align: center; }
#cp-modal .cp-tip.err { color: #dc2626; }
#cp-modal .cp-tip.warn { color: #d97706; }
#cp-modal .cp-tip.ok { color: #059669; }
#cp-modal .cp-foot { padding: 12px 20px 18px; border-top: none; }
#cp-modal .cp-ok {
  width: 100%; padding: 13px 18px; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; transition: opacity .15s, transform .12s;
}
#cp-modal .cp-ok.loading { cursor: wait; opacity: .85; }
#cp-modal .cp-ok.loading .cp-ok-label::after { content: '…'; }
#cp-modal .cp-spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: cpspin .8s linear infinite;
}
#cp-modal .cp-ok.loading .cp-spinner { display: inline-block; }
@keyframes cpspin { to { transform: rotate(360deg); } }

/* ===== 居中、带图标、自动消失的 APP Toast ===== */
.app-toast {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.92);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; min-width: 140px; max-width: 78vw;
  border-radius: 14px; font-size: 15px; font-weight: 600;
  background: rgba(17, 24, 39, .95); color: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
  opacity: 0; pointer-events: none;
  z-index: 99999;
  transition: opacity .22s ease, transform .22s cubic-bezier(.22,1,.36,1);
}
.app-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.app-toast .app-toast-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-weight: 800; font-size: 16px; line-height: 1;
}
.app-toast.ok  { background: linear-gradient(135deg, #10b981, #059669); }
.app-toast.ok  .app-toast-icon { background: rgba(255,255,255,.22); }
.app-toast.err { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.app-toast.err .app-toast-icon { background: rgba(255,255,255,.22); }
.app-toast.info { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.app-toast.info .app-toast-icon { background: rgba(255,255,255,.22); font-family: Georgia, serif; font-style: italic; }
.app-toast .app-toast-text { line-height: 1.4; white-space: pre-wrap; word-break: break-all; }

/* 卡片弹窗统一 dispose 动画 */
.modal.active .modal-card.cx-card,
.modal.active .modal-card.cx-success-card { animation: modalIn .28s cubic-bezier(.22,1,.36,1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }

/* ===== 卡密兑换弹窗（v2：与跨手机同步弹窗视觉统一） ===== */
#cx-modal { z-index: 100000; } /* 高于分类公告（99997）/ 全局公告（99999）等任何遮罩 */
#cx-modal .cx-card { max-width: 360px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
#cx-modal .cx-body { padding: 22px 20px 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#cx-modal .cx-input-wrap {
  position: relative; display: flex; align-items: center;
}
#cx-modal .cx-input {
  width: 100%; box-sizing: border-box;
  padding: 14px 44px 14px 16px; font-size: 16px; line-height: 1.4;
  border: 1.5px solid #e5e7eb; border-radius: 12px;
  background: #f9fafb; color: #111827;
  letter-spacing: 1px; text-align: center; font-weight: 600;
  outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
  text-transform: uppercase;
}
#cx-modal .cx-input::placeholder { color: #9ca3af; font-weight: 400; letter-spacing: 0; }
#cx-modal .cx-input:focus { border-color: #7c3aed; background: #fff; box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
#cx-modal .cx-input.err {
  border-color: #ef4444; background: #fef2f2;
  animation: cardErrShake .35s ease-out;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
#cx-modal .cx-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  opacity: .75; transition: opacity .15s, transform .12s;
}
#cx-modal .cx-clear:hover { opacity: 1; }
#cx-modal .cx-clear:active { transform: translateY(-50%) scale(.92); }
#cx-modal .cx-foot { padding: 12px 20px 20px; border-top: none; }
#cx-modal .cx-ok {
  width: 100%; padding: 13px 18px; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; transition: opacity .15s, transform .12s;
}
#cx-modal .cx-ok.loading { cursor: wait; opacity: .92; }
#cx-modal .cx-ok.loading .cx-ok-label::after { content: '…'; }
#cx-modal .cx-spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: cpspin .8s linear infinite;
}
#cx-modal .cx-ok.loading .cx-spinner { display: inline-block; }

/* 卡密弹窗扩展：公告 / 背景说明 / 购买 / 联系客服 */
#cx-modal .cx-ann {
  margin: -6px 0 12px; padding: 10px 12px; border-radius: 10px;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6); color: #b91c1c;
  font-size: 13px; line-height: 1.55; word-break: break-word;
  border: 1px solid rgba(239,68,68,.18);
}
#cx-modal .cx-bg {
  margin: 0 0 12px; padding: 9px 12px; border-radius: 10px;
  background: #f5f3ff; color: #4338ca;
  font-size: 12.5px; line-height: 1.55; word-break: break-word;
  border: 1px solid rgba(124,58,237,.14);
}
/* 卡密兑换结果提示：贴输入框上方（弹窗前方、最显眼），不再依赖全局居中 toast */
#cx-modal .cx-msg {
  display: none;
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  font-size: 13px; line-height: 1.5; font-weight: 500; word-break: break-word;
  border: 1px solid transparent;
  animation: cxMsgIn .25s ease-out;
}
#cx-modal .cx-msg.show { display: block; }
#cx-modal .cx-msg.err  { background: #fef2f2; color: #b91c1c; border-color: rgba(239,68,68,.25); }
#cx-modal .cx-msg.ok   { background: #ecfdf5; color: #047857; border-color: rgba(16,185,129,.25); }
#cx-modal .cx-msg.info { background: #eff6ff; color: #1d4ed8; border-color: rgba(59,130,246,.25); }
@keyframes cxMsgIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
#cx-modal .cx-sublinks {
  display: flex; gap: 10px; justify-content: center; align-items: center;
  margin-top: 14px; flex-wrap: wrap;
}
#cx-modal .cx-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: opacity .15s, transform .12s, box-shadow .15s;
  border: 1px solid transparent;
}
#cx-modal .cx-link:active { transform: scale(.97); }
#cx-modal .cx-buy {
  background: linear-gradient(135deg, #fb923c, #f97316); color: #fff;
  box-shadow: 0 2px 8px rgba(249,115,22,.28);
}
#cx-modal .cx-buy:hover { opacity: .92; box-shadow: 0 4px 12px rgba(249,115,22,.36); }
#cx-modal .cx-ctc {
  background: #fff; color: #6d28d9; border-color: #ddd6fe;
}
#cx-modal .cx-ctc:hover { background: #f5f3ff; border-color: #c4b5fd; }
/* 客服兜底入口：没有配置客服链接、改由「客服设置」唤起 QQ 时渲染成 <button>，
   这里把浏览器默认按钮样式归一化，视觉与上面的 <a> 完全一致。 */
#cx-modal button.cx-link {
  font-family: inherit; line-height: normal; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}

/* ===== 卡密兑换成功模态 ===== */
#cx-success .cx-success-card {
  max-width: 340px; padding: 28px 26px 22px;
  text-align: center; background: linear-gradient(180deg, #ffffff, #f9fafb);
}
#cx-success .cx-success-icon {
  display: inline-flex; margin: 0 auto 14px;
  filter: drop-shadow(0 6px 18px rgba(16,185,129,.35));
}
#cx-success .cx-success-title {
  font-size: 20px; font-weight: 800; color: #111827;
  margin-bottom: 18px; letter-spacing: 1px;
}
#cx-success .cx-success-meta {
  background: #f3f4f6; border-radius: 12px; padding: 14px 16px;
  margin: 0 6px 22px;
}
#cx-success .cx-success-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px;
}
#cx-success .cx-success-k { color: #6b7280; }
#cx-success .cx-success-v {
  font-family: 'SF Mono', 'Consolas', monospace; color: #111827;
  font-weight: 700; letter-spacing: 1px;
}
#cx-success .cx-success-foot { padding: 0; }
#cx-success .cx-success-ok {
  width: 100%; padding: 13px 18px; font-size: 15px; font-weight: 700;
}

/* ===== App 化体感：转场 / 骨架屏 / 下拉刷新 / 启动屏 / 顶栏折叠 / Tab 动效 ===== */

/* 转场：纯 opacity 淡入淡出（260ms ease-out，GPU 合成，无 blur/位移，克制高端风格）。
   JS 切页：加 .page-leaving（淡出）→ 260ms 后替换 innerHTML → 加 .page-entering（透明）→ 下一帧移除（淡入）。 */
#page-root {
  opacity: 1;
  transition: opacity 200ms var(--ease);
  will-change: opacity;
}
#page-root.page-leaving { opacity: 0; pointer-events: none; }
#page-root.page-entering { opacity: 0; pointer-events: none; }
/* 离场覆盖层：承载旧内容淡出（对齐滚动位置，避免切走瞬间跳变）。
   背景改透明：旧内容直接透明、与新内容(-page-entering 同步淡入)形成自然交叉淡入淡出，不再闪暗。 */
.page-leaving-layer {
  position: absolute; left: 0; right: 0; top: 0; height: 100%; overflow: hidden;
  z-index: 6; pointer-events: none; background: transparent;
  opacity: 1; transition: opacity 200ms var(--ease); will-change: opacity;
}
.page-leaving-layer.show { opacity: 0; }

/* 列表卡片进入视口淡入（opacity + 微小位移弹出，260ms ease-out，GPU 合成） */
.game-card { transition: transform .12s ease-out, opacity .12s ease-out, box-shadow .2s ease-out; }
.game-card.card-anim { opacity: 0; transform: translateY(12px); transition: opacity .26s ease-out, transform .26s ease-out; will-change: opacity, transform; }
.game-card.card-in { opacity: 1; transform: none; }
/* 低端设备：关闭卡片入场动画，仅保留基础淡入淡出切换 */
html.low-end .game-card.card-anim, html.low-end .game-card.card-in { opacity: 1 !important; transform: none !important; transition: none !important; }
/* 可点击元素按下反馈：轻微缩放 0.96，松开恢复（柔和，无震动） */
.start-btn, .start-btn-sm, .btn-primary, .hs-bn, .rec-card, .vip-card { transition: transform .12s ease-out; }
.start-btn:active, .start-btn-sm:active, .btn-primary:active, .hs-bn:active, .rec-card:active, .vip-card:active { transform: scale(0.96); }

/* 骨架屏：替代「加载中…」文字 */
.skeleton {
  background: linear-gradient(90deg, #2a2740 25%, #3a3658 37%, #2a2740 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 12px;
}
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.skeleton-grid { padding: 8px 0; }
.skeleton-card {
  display: flex; gap: 12px; align-items: center;
  height: 84px; margin: 10px 14px;
  padding: 14px;
  background: linear-gradient(90deg, #2a2740 25%, #3a3658 37%, #2a2740 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 12px;
}
.skeleton-card::before {
  content: ''; flex: 0 0 56px; height: 56px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
}
.skeleton-card::after {
  content: ''; flex: 1; height: 14px; border-radius: 6px;
  background: rgba(255,255,255,0.06); margin-right: 30px;
}
/* 紧凑单行骨架（用于 mine 页 VIP / 跨浏览器 等小段，避免把页面撑高到 800+px 让用户以为「刷新不出来」） */
.skel-line {
  height: 56px; margin: 10px 14px; border-radius: 10px;
  background: linear-gradient(90deg, #2a2740 25%, #3a3658 37%, #2a2740 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
}

/* 下拉刷新指示器（fixed 定位独立挂 body，避开 topbar，不会被 page-root 重新渲染干掉） */
.ptr.ptr-fixed {
  position: fixed;
  left: 0; right: 0;
  top: calc(env(safe-area-inset-top, 0px) + 54px);
  z-index: 50;
  background: linear-gradient(180deg, rgba(124,58,237,0.18), rgba(124,58,237,0));
}
.ptr {
  height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  color: #a78bfa; font-size: 13px; transition: height .2s;
}
.ptr.show { height: 52px; }
.ptr .spin {
  width: 20px; height: 20px; margin-right: 8px;
  border: 2px solid #a78bfa; border-top-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 顶栏大标题折叠（iOS 风格，滚动时缩小字号） */
.topbar .brand .brand-text { transition: font-size .22s, opacity .22s; }
.topbar.scrolled .brand .brand-text { font-size: 14px; opacity: .82; }
.topbar.scrolled .brand-logo { transform: scale(0.86); }
.brand-logo { transition: transform .22s; }

/* 底部 Tab 选中态微动效（补充） */
.bn-item { transition: transform .15s, color .15s; }
.bn-item.active { transform: scale(1.08); }
.bn-item:active { transform: scale(0.96); }

/* 纯 CSS 品牌启动屏（App 启动时第一屏） */
#splash-app {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(160deg, #1a1530 0%, #2d1b4e 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding-top: env(safe-area-inset-top);
  transition: opacity .35s ease, visibility .35s;
}
#splash-app.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#splash-app .sa-logo {
  width: 88px; height: 88px; border-radius: 22px;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 45%, #6366f1 100%);
  box-shadow: 0 10px 40px rgba(124,58,237,.55), inset 0 1px 2px rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
#splash-app .sa-logo svg { width: 52px; height: 52px; }
#splash-app .sa-name {
  font-size: 20px; font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(100deg, #c4b5fd, #f0abfc, #a5b4fc);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #c4b5fd;
}
#splash-app .sa-bar {
  position: relative; width: 140px; height: 4px; border-radius: 99px;
  background: rgba(255,255,255,.12); overflow: hidden;
}
#splash-app .sa-bar i {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, #a78bfa, #f0abfc);
  animation: loadBar 1s infinite;
}
@keyframes loadBar {
  0%   { margin-left: -40%; }
  100% { margin-left: 100%; }
}

/* ===== 抖音式全屏个人资料页 ===== */
.profile-page {
  position: fixed; inset: 0; z-index: 1100;
  background: #f4f1f8;
  color: #2a2540;
  display: flex; flex-direction: column;
  overflow-y: auto;
  animation: ppFadeIn .28s ease-out;
  -webkit-overflow-scrolling: touch;
}
.profile-page.pp-closing { animation: ppFadeOut .24s ease-in forwards; }
@keyframes ppFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ppFadeOut { from { opacity: 1; } to { opacity: 0; transform: translateY(8px); } }
.pp-topbar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 12px;
  background: transparent;
  pointer-events: none;
}
.pp-back {
  pointer-events: auto;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: none; color: #2a2540; font-size: 26px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pp-progress { flex: 1; pointer-events: auto; padding: 0 4px; }
.pp-prog-bar { height: 6px; background: rgba(255,255,255,0.55); border-radius: 3px; overflow: hidden; }
.pp-prog-fill { height: 100%; background: linear-gradient(90deg, #6d5cff, #ff6dc7); border-radius: 3px; transition: width .4s; }
.pp-prog-text { font-size: 12px; color: #2a2540; margin-top: 4px; opacity: 0.75; }
.pp-prog-text b { color: #6d5cff; font-weight: 800; }

.pp-hero {
  position: relative;
  height: 180px;
  margin: -56px 0 0 0; /* 让背景被顶栏盖住一点 */
  overflow: visible;
  flex: 0 0 auto;
}
.pp-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(173, 216, 255, 0.85) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(120% 80% at 100% 0%, rgba(255, 192, 224, 0.7) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(140% 100% at 50% 100%, rgba(180, 165, 245, 0.6) 0%, rgba(220, 220, 255, 0) 60%),
    linear-gradient(180deg, #e8e0ff 0%, #d9e8ff 50%, #ffe0ee 100%);
  filter: blur(2px);
  cursor: pointer;
}
.pp-avatar-wrap {
  position: absolute; left: 50%; top: 100%;
  transform: translate(-50%, -50%);
  width: 110px; height: 110px;
}
.pp-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  background: linear-gradient(135deg, #2d1b4e, #1a1530);
  display: flex; align-items: center; justify-content: center;
  border: 4px solid #fff;
  box-shadow: 0 6px 22px rgba(0,0,0,0.15);
  overflow: hidden;
  cursor: pointer;
}
.pp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pp-avatar svg { width: 56px; height: 56px; }

.pp-card {
  margin: 76px 16px 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
}
.pp-list { display: flex; flex-direction: column; }
.pp-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #f0eef5;
  cursor: pointer; transition: background .15s;
  min-height: 56px;
}
.pp-row:last-child { border-bottom: none; }
.pp-row:active { background: #f6f4fb; }
.pp-label { font-size: 15px; color: #6b6480; flex: 0 0 50px; }
.pp-value { flex: 1; font-size: 16px; color: #2a2540; font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-value.pp-empty { color: #b8b3c8; font-weight: 400; }
.pp-arrow { color: #c4bed4; font-size: 22px; line-height: 1; }
.pp-gender-btns { display: flex; gap: 8px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.pp-g-opt {
  background: #f4f1f8; color: #6b6480; border: none;
  padding: 6px 12px; border-radius: 14px;
  font-size: 13px; cursor: pointer; transition: all .15s;
}
.pp-g-opt.active { background: linear-gradient(135deg, #6d5cff, #ff6dc7); color: #fff; font-weight: 700; }
.pp-gender-pick { display: flex; flex-direction: column; gap: 10px; }
.pp-g-pick {
  background: #f4f1f8; color: #2a2540; border: none;
  padding: 12px 16px; border-radius: 12px;
  font-size: 15px; cursor: pointer; text-align: left;
  transition: all .15s; font-weight: 600;
}
.pp-g-pick:active { background: linear-gradient(135deg, #6d5cff, #ff6dc7); color: #fff; }

/* pp 编辑子界面（点 row 后整页替换） */
.pp-edit { margin: 20px 16px 32px; animation: ppFadeIn .22s ease-out; }
.pp-edit-card { background: #fff; border-radius: 16px; padding: 22px 18px 18px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.pp-edit-title { font-size: 18px; font-weight: 800; color: #2a2540; margin-bottom: 16px; }
.pp-edit-input { width: 100%; padding: 14px 14px; font-size: 16px; border: 2px solid #ece8f5; border-radius: 12px; background: #faf9fc; color: #2a2540; box-sizing: border-box; outline: none; transition: border-color .15s, background .15s; -webkit-appearance: none; }
.pp-edit-input:focus { border-color: #6d5cff; background: #fff; }
.pp-edit-textarea { min-height: 110px; line-height: 1.6; resize: none; }
.pp-edit-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; }
.pp-edit-count { font-size: 12px; color: #9890a8; }
.pp-edit-save { flex: 1; background: linear-gradient(135deg, #6d5cff, #ff6dc7); color: #fff; border: none; padding: 13px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .1s, opacity .15s; box-shadow: 0 4px 14px rgba(109,92,255,0.35); }
.pp-edit-save:active { transform: scale(0.98); opacity: 0.9; }
.pp-edit-save:disabled { opacity: 0.6; cursor: default; }
.pp-edit-pick { display: flex; flex-direction: column; gap: 10px; }
.pp-edit-opt { background: #f4f1f8; color: #2a2540; border: none; padding: 14px 16px; border-radius: 12px; font-size: 15px; cursor: pointer; text-align: left; transition: all .15s; font-weight: 600; }
.pp-edit-opt:active { background: linear-gradient(135deg, #6d5cff, #ff6dc7); color: #fff; }

/* ===== v16: 自定义分享菜单 + 右滑返回提示阴影 ===== */
.share-sheet { background: rgba(15, 10, 30, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.share-card { width: 90vw; max-width: 360px; background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%); border-radius: 22px; padding: 20px 18px 16px; margin: 0 auto; box-shadow: 0 -20px 60px rgba(124, 92, 255, 0.35); animation: sharePop .26s cubic-bezier(.22,1,.36,1) both; }
@keyframes sharePop { from { transform: translateY(40px) scale(.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.share-head { text-align: center; margin-bottom: 18px; }
.share-emoji { font-size: 38px; margin-bottom: 6px; }
.share-title { font-size: 16px; font-weight: 700; color: #1a1530; margin-bottom: 4px; }
.share-url { font-size: 12px; color: #8a7eb0; word-break: break-all; max-width: 100%; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.share-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: transparent; border: 0; padding: 8px 4px; cursor: pointer; border-radius: 12px; transition: all .15s; color: #2a2540; }
.share-btn:active { background: rgba(124, 92, 255, 0.10); transform: scale(0.94); }
.share-ico { width: 50px; height: 50px; border-radius: 16px; background: linear-gradient(135deg, #f0eaff 0%, #fff5fb 100%); display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 4px 10px rgba(124, 92, 255, 0.15); }
.share-btn span { font-size: 11px; color: #4a3f6b; font-weight: 500; }
.share-cancel { width: 100%; padding: 13px; background: #f4f1f8; color: #2a2540; border: 0; border-radius: 14px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s; }
.share-cancel:active { background: #e7e0f5; transform: scale(0.98); }

/* 右滑返回时给顶栏一个微弱阴影，提示用户正在返回 */
#page-root.swiping-back { box-shadow: -8px 0 24px rgba(124, 92, 255, 0.25); }

/* 首页搜索行 */
.home-search-row { display:flex; align-items:center; gap:10px; margin:10px 14px 14px; padding:11px 14px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius:14px; cursor:pointer; -webkit-tap-highlight-color:transparent; transition:background .25s, transform .25s; animation:pageIn .5s ease both; }
.home-search-row:active { background:rgba(255,255,255,.14); transform:scale(.99); }
.home-search-ico { font-size:16px; line-height:1; }
.home-search-placeholder { flex:1; color:rgba(255,255,255,.55); font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* 启动 loading 弹窗 */
.launching-mask { position:fixed; inset:0; z-index:99996; background:rgba(10,6,28,.65); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); display:flex; align-items:center; justify-content:center; padding:24px; animation:np-fade .25s ease; }
.launching-card { display:flex; flex-direction:column; align-items:center; gap:14px; background:linear-gradient(165deg, rgba(45,30,90,.96) 0%, rgba(28,18,58,.96) 100%); border:1px solid rgba(138,92,255,.28); border-radius:20px; padding:30px 38px; box-shadow:0 16px 48px rgba(0,0,0,.45); animation:np-pop .32s cubic-bezier(.34,1.4,.64,1); }
.launching-title { color:#fff; font-size:16px; font-weight:700; }
.launching-sub { color:rgba(255,255,255,.6); font-size:12.5px; text-align:center; }
.launching-spin { display:inline-flex; gap:6px; }
.launching-spin span { width:10px; height:10px; border-radius:50%; background:linear-gradient(135deg, #8b5cf6, #5b6ef0); animation:launchBounce 1.1s ease-in-out infinite; }
.launching-spin span:nth-child(2) { animation-delay:.15s; }
.launching-spin span:nth-child(3) { animation-delay:.3s; }
@keyframes launchBounce { 0%, 80%, 100% { transform:scale(.55); opacity:.4; } 40% { transform:scale(1); opacity:1; } }

/* 下拉刷新指示器 */
.ptr-indicator { position:fixed; top:48px; left:0; right:0; z-index:200; display:flex; align-items:center; justify-content:center; gap:10px; height:0; opacity:0; overflow:hidden; background:linear-gradient(180deg, rgba(124,58,237,.85) 0%, rgba(124,58,237,0) 100%); color:#fff; font-size:13px; font-weight:600; transition:opacity .15s linear, height .25s; pointer-events:none; letter-spacing:.5px; box-shadow:0 2px 12px rgba(124,58,237,.3); }
.ptr-indicator.ptr-ready { color:#a78bfa; }
.ptr-indicator.ptr-refreshing { color:#a78bfa; }
.ptr-spin { width:16px; height:16px; border-radius:50%; border:2px solid rgba(167,139,250,.3); border-top-color:#a78bfa; flex:0 0 16px; }
.ptr-indicator.ptr-refreshing .ptr-spin { animation:ptr-spin .9s linear infinite; }
@keyframes ptr-spin { to { transform:rotate(360deg); } }

/* ===================== 账号：全屏登录/注册页（强制注册 + 单设备绑定） ===================== */
body.auth-locked { overflow: hidden; }
.auth-gate {
  position: fixed; inset: 0; z-index: 100000;
  display: none; align-items: center; justify-content: center;
  padding: 24px 18px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.auth-gate.show { display: flex; }
.auth-gate .ag-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 20% -10%, rgba(124, 58, 237, .45), transparent 60%),
    radial-gradient(760px 460px at 100% 0%, rgba(59, 130, 246, .30), transparent 60%),
    linear-gradient(160deg, #12122a 0%, #0d0d1c 55%, #0a0a14 100%);
  pointer-events: none;   /* 遮罩层绝不可拦截点击 */
}
.auth-gate .ag-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 360px;
  margin: auto;
  padding: 30px 24px 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow:
    0 30px 80px rgba(15, 7, 38, .55),
    0 0 0 1px rgba(124, 58, 237, .06);
  animation: agIn .36s cubic-bezier(.22, 1, .36, 1);
  box-sizing: border-box;
}
@keyframes agIn { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
.auth-gate .ag-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; line-height: 28px;
  border: none; background: transparent; color: #9ca3af;
  font-size: 24px; cursor: pointer; border-radius: 50%;
  transition: background .15s, color .15s, transform .15s;
}
.auth-gate .ag-close:hover { background: #f3f4f6; color: #4b5563; }
.auth-gate .ag-close:active { transform: scale(.92); }
/* 顶部图标：柔光渐变 + 呼吸 + 双层光晕 */
.auth-gate .ag-logo {
  width: 60px; height: 60px; margin: 0 auto 12px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 50%, #4f46e5 100%);
  box-shadow:
    0 0 0 6px rgba(139, 92, 246, .12),
    0 14px 32px rgba(109, 40, 217, .45),
    inset 0 1px 0 rgba(255, 255, 255, .25);
  position: relative;
  animation: agBreathe 3.2s ease-in-out infinite;
}
@keyframes agBreathe {
  0%, 100% { box-shadow: 0 0 0 6px rgba(139, 92, 246, .12), 0 14px 32px rgba(109, 40, 217, .45), inset 0 1px 0 rgba(255, 255, 255, .25); transform: translateY(0); }
  50%      { box-shadow: 0 0 0 10px rgba(139, 92, 246, .18), 0 18px 38px rgba(109, 40, 217, .55), inset 0 1px 0 rgba(255, 255, 255, .25); transform: translateY(-2px); }
}
.auth-gate .ag-logo::after {
  content: ""; position: absolute; inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%, rgba(139, 92, 246, .4) 100%);
  z-index: -1; filter: blur(8px); opacity: .7;
}
.auth-gate .ag-logo svg { width: 32px; height: 32px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2)); }
.auth-gate .ag-title { text-align: center; font-size: 20px; font-weight: 800; color: #111827; letter-spacing: .3px; }
.auth-gate .ag-sub { text-align: center; font-size: 12.5px; color: #6b7280; margin-top: 5px; line-height: 1.5; }

/* tab 切换：选中态紫蓝渐变 + 微缩放 */
.auth-gate .ag-tabs {
  display: flex; gap: 6px; margin: 18px 0 18px;
  padding: 5px; background: #f3f4f6; border-radius: 13px;
}
.auth-gate .ag-tab {
  flex: 1; padding: 10px 0; border: none; border-radius: 9px;
  background: transparent; color: #6b7280;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .22s, color .22s, box-shadow .22s, transform .12s;
}
.auth-gate .ag-tab:active { transform: scale(.97); }
.auth-gate .ag-tab.on {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .35);
}

/* 字段：label 在上，input 在下，下方错误位 */
.auth-gate .ag-field { margin-bottom: 14px; }
.auth-gate .ag-label {
  display: block;
  font-size: 12.5px; font-weight: 600; color: #4b5563;
  margin-bottom: 6px; letter-spacing: .2px;
}
.ag-input {
  width: 100%; box-sizing: border-box;
  padding: 13px 15px;
  font-size: 15.5px; line-height: 1.4;
  border: 1.5px solid #e5e7eb; border-radius: 12px;
  background: #fafbfc; color: #111827;
  outline: none; transition: border-color .18s, background .18s, box-shadow .18s;
  -webkit-appearance: none; appearance: none;
}
.ag-input::placeholder { color: #9ca3af; font-size: 14px; }
.ag-input:hover { border-color: #d1d5db; }
.ag-input:focus {
  border-color: #7c3aed; background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .14);
}
.ag-input.err {
  border-color: #ef4444; background: #fff;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .10);
}
.auth-gate .ag-field-err {
  min-height: 16px;
  font-size: 12.5px; line-height: 1.4; color: #ef4444;
  margin-top: 5px; padding-left: 2px;
  opacity: 0; transform: translateY(-2px);
  transition: opacity .18s, transform .18s;
}
.auth-gate .ag-field-err.on { opacity: 1; transform: none; }

/* 验证码：左右两栏对齐，圆角+点击刷新旋转 */
.auth-gate .ag-cap-input-wrap { display: flex; gap: 10px; align-items: stretch; }
.auth-gate .ag-cap-input {
  flex: 1; min-width: 0;
  text-align: center; letter-spacing: 5px; font-weight: 700; text-transform: uppercase;
  padding-left: 12px; padding-right: 12px;
}
.auth-gate .ag-cap-img {
  flex: 0 0 112px; height: 48px;
  border: 1.5px solid #e5e7eb; border-radius: 12px;
  background: #fafbfc; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .18s, transform .5s cubic-bezier(.5, 1.6, .4, 1);
}
.auth-gate .ag-cap-img:hover { border-color: #c4b5fd; }
.auth-gate .ag-cap-img:active { transform: scale(.96); }
.auth-gate .ag-cap-img.spin { transform: rotate(360deg); }
.auth-gate .ag-cap-img svg { width: 100%; height: 100%; display: block; }
.auth-gate .ag-cap-loading { font-size: 12px; color: #9ca3af; }

/* 通用 tip（保留兼容，如修改密码等还在用） */
.ag-tip { min-height: 18px; margin: 6px 0 4px; font-size: 13px; line-height: 1.5; text-align: center; color: #6b7280; }
.ag-tip.err { color: #dc2626; }
.ag-tip.ok { color: #059669; }

/* 主按钮：紫蓝渐变 + 按压 + loading 锁 */
.ag-submit {
  width: 100%; padding: 14px 18px; margin-top: 6px;
  border: none; border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 4px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 12px 28px rgba(79, 70, 229, .35), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: opacity .18s, transform .12s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.ag-submit:hover { box-shadow: 0 14px 32px rgba(79, 70, 229, .45), inset 0 1px 0 rgba(255, 255, 255, .2); }
.ag-submit:active { transform: scale(.97); }
.ag-submit:disabled { opacity: .85; cursor: wait; }
.ag-spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  border-radius: 50%; animation: cpspin .8s linear infinite;
}
.ag-submit.loading .ag-spinner { display: inline-block; }
.ag-submit.loading .ag-submit-label { letter-spacing: 1px; }

/* 底部：忘记密码左 / 切换右 */
.auth-gate .ag-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; font-size: 13px;
}
.auth-gate .ag-link, .auth-gate .ag-switch { color: #6d28d9; cursor: pointer; transition: opacity .15s; }
.auth-gate .ag-link:active, .auth-gate .ag-switch:active { opacity: .65; }

/* 底部小字灰色提示（替代原黄色警告框） */
.auth-gate .ag-foot-tip {
  margin-top: 14px;
  font-size: 11.5px; line-height: 1.7; color: #9ca3af; text-align: center;
  letter-spacing: .1px;
}

/* 注册成功确认页（2026-07-31）：问用户是否自动登录 */
.auth-gate .ag-card.ag-done { text-align: center; padding-top: 34px; }
.auth-gate .ag-done-icon {
  font-size: 46px; line-height: 1; margin-bottom: 14px;
  animation: agDonePop .45s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes agDonePop {
  0% { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.auth-gate .ag-done-user {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 18px 0 4px; padding: 11px 14px;
  background: #f3f4f6; border-radius: 12px;
}
.auth-gate .ag-done-user-lbl { font-size: 12.5px; color: #6b7280; }
.auth-gate .ag-done-user-val {
  font-size: 15px; font-weight: 700; color: #111827;
  word-break: break-all; max-width: 210px;
}
.auth-gate .ag-done-q {
  margin: 18px 0 12px;
  font-size: 14px; font-weight: 600; color: #374151;
}
.auth-gate .ag-done-no {
  width: 100%; margin-top: 10px; padding: 12px 18px;
  border: 1px solid #e5e7eb; border-radius: 12px;
  background: #fff; color: #6b7280;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.auth-gate .ag-done-no:hover { background: #f9fafb; color: #374151; border-color: #d1d5db; }
.auth-gate .ag-done-no:active { transform: scale(.97); }


/* 我的 → 账号卡 */
.acc-card {
  margin-top: 8px; padding: 12px 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
}
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; font-size: 14px; }
.acc-lbl { color: #9aa0b5; flex: 0 0 auto; }
.acc-val { color: #fff; font-weight: 600; text-align: right; word-break: break-all; }
.acc-val.ok { color: #34d399; }
.acc-val.warn { color: #fbbf24; }
.acc-tip {
  margin-top: 10px; padding: 9px 12px;
  background: rgba(124, 92, 255, .10); border: 1px solid rgba(124, 92, 255, .25);
  border-radius: 10px; font-size: 12px; line-height: 1.6; color: #c4b5fd;
}
.acc-logout { margin-top: 10px; background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 6px 16px rgba(225, 29, 72, .28); border-radius: 14px; letter-spacing: .5px; }

/* 修改密码弹窗（沿用 ag-field/ag-input/ag-submit 的视觉，与登录弹窗统一） */
#cpw-modal .cx-body { padding: 18px 20px 4px; }
#cpw-modal .cx-body .ag-field { margin-bottom: 12px; }
#cpw-modal .cx-foot { padding: 8px 20px 20px; border-top: none; text-align: center; }
#cpw-modal .cx-foot .ag-submit { width: auto; min-width: 140px; padding: 12px 24px; letter-spacing: 1px; }

/* ===== 自定义确认弹窗（2026-07-31 替换原生 confirm，与卡密/同步弹窗视觉统一） ===== */
.confirm-mask {
  position: fixed; inset: 0; z-index: 11000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 8, 40, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 16px;
  animation: cfMaskIn .25s ease;
}
@keyframes cfMaskIn { from { opacity: 0; } to { opacity: 1; } }
.confirm-card {
  width: min(340px, 100%);
  background: linear-gradient(165deg, rgba(45, 30, 90, .96) 0%, rgba(28, 18, 58, .96) 100%);
  border: 1px solid rgba(138, 92, 255, .32);
  border-radius: 18px;
  padding: 26px 22px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #f3f4f6;
  animation: cfPop .32s cubic-bezier(.34, 1.4, .64, 1);
}
@keyframes cfPop { from { opacity: 0; transform: scale(.9) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.confirm-title {
  text-align: center;
  font-size: 17px; font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: .5px;
}
.confirm-msg {
  text-align: center;
  font-size: 14px; line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 22px;
}
.confirm-actions {
  display: flex; gap: 10px;
}
.confirm-btn {
  flex: 1;
  height: 44px;
  border: 0; border-radius: 12px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.confirm-btn:active { transform: scale(.97); }
.confirm-cancel {
  background: rgba(255, 255, 255, .08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, .12);
}
.confirm-cancel:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.confirm-ok {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  box-shadow: 0 6px 16px rgba(124, 58, 237, .32);
}
.confirm-ok:hover { box-shadow: 0 8px 22px rgba(124, 58, 237, .5); }
.confirm-ok.danger {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  box-shadow: 0 6px 16px rgba(244, 63, 94, .3);
}

/* 充值套餐板块（叶子页） */
.confirm-ok.danger:hover { box-shadow: 0 8px 22px rgba(244, 63, 94, .48); }

/* ===== 首页 Banner 轮播 + 自定义板块（后台 homeConfig 渲染） ===== */
.home-banner-wrap {
  display: flex; gap: 10px; overflow-x: auto; padding: 12px 14px 4px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.home-banner-wrap::-webkit-scrollbar { display: none; }
.home-banner {
  position: relative; flex: 0 0 auto; width: 86%; max-width: 420px; aspect-ratio: 16 / 7;
  border-radius: 14px; overflow: hidden; scroll-snap-align: center;
  background: #1c1530; box-shadow: 0 6px 18px rgba(15, 12, 41, .35); text-decoration: none;
}
.home-banner img { position: absolute; top: -15%; left: 0; width: 100%; height: 130%; object-fit: cover; display: block; will-change: transform; }
.home-banner-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; z-index: 2;
  font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55));
}
.hc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 14px 4px;
}
.hc-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px;
  background: #fff; border: 1px solid #eef0f6; border-radius: 12px; text-decoration: none;
  box-shadow: 0 3px 10px rgba(20, 20, 50, .05); transition: transform .12s, box-shadow .12s;
}
.hc-card:active { transform: scale(.97); }
.hc-card-ico { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.hc-card-name { font-size: 12.5px; color: #1f2430; text-align: center; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-sub { font-size: 12px; font-weight: 500; color: #7c5cff; margin-left: 6px; }


/* === 搜索/板块空结果空态（2026-08-02 修复：搜不到时不再一片空白） === */
.sub-empty { grid-column: 1 / -1; text-align: center; padding: 44px 20px 40px; animation: cardIn .28s var(--ease) both; }
.sub-empty-ico { font-size: 52px; line-height: 1; margin-bottom: 14px; opacity: .55; }
.sub-empty-t { font-size: 15.5px; font-weight: 700; color: var(--text-light); margin-bottom: 7px; word-break: break-all; }
.sub-empty-s { font-size: 12.5px; color: rgba(255,255,255,.52); line-height: 1.6; }
.sub-empty-btn { margin-top: 18px; padding: 10px 24px; border: none; border-radius: 14px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #7c5cff, #9d7bff); box-shadow: 0 4px 14px rgba(124,92,255,.32);
  transition: transform .12s ease-out, box-shadow .2s ease-out; }
.sub-empty-btn:active { transform: scale(.95); box-shadow: 0 2px 8px rgba(124,92,255,.28); }
