/* =============================================================================
   手机端/响应式修复层 · mobile-fix.css
   -----------------------------------------------------------------------------
   作用：只处理布局与滚动问题，不改配色。
     A. 手机端（≤767px）：滚动 / 弹层 / 安全区 / 触屏表单 / 部分页面排版
     B. 桌面/平板（≥768px）：平板竖屏与手机横屏的顶栏压缩
   全站配色固定为「现版」v30（候选皮肤与换风格切换已下线，index.html 只引
   style.css + theme-v30.css + 本文件）。
   加载顺序：本文件必须在 style.css、theme-v30.css 之后加载（见 index.html）。
   覆盖点：
     1. 外壳滚动链：#app/#main/#view 高度与唯一滚动容器
     2. iPhone 安全区：viewport-fit=cover 后的顶栏/底栏/抽屉内边距（刘海 & Home 条）
     3. 弹层层级与滚动：全屏遮罩必须高于 #tabbar；贴底抽屉内容过长时可滚动
     4. 登录/注册页：超长表单在矮屏 / 键盘弹出时可滚动
     5. iOS 输入框 16px 防自动放大；表格/长内容横向滚动
     6. 个人中心头部：390 宽下等级进度被挤扁、按钮压字
     7. 陪玩中心 / 打手主页（大神主页）手机排版
     8. 触屏点击目标兜底
   ========================================================================== */

@media (max-width: 767px) {

  /* ---------------------------------------------------------------------------
     1. 外壳滚动链
     - body 是 overflow:hidden，页面滚动完全依赖 #view；
       #app/#main 用 100dvh，避免 iOS 地址栏收起/展开时底部被裁。
     - 视口高度统一用 100dvh，兼容 iOS 地址栏收起/展开。
     --------------------------------------------------------------------------- */
  body { padding-top: 0 !important; overflow: hidden; }

  html, body { height: 100%; }
  #app { height: 100vh; height: 100dvh; min-height: 0; }
  #main { width: 100%; height: 100vh; height: 100dvh; min-height: 0; }
  #view {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    /* 给底部 tabbar（约 61px + 安全区）留出点击空间，避免最后一张卡片被盖住 */
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
    scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  }

  /* ---------------------------------------------------------------------------
     2. iPhone 安全区（配合 index.html 的 viewport-fit=cover）
     --------------------------------------------------------------------------- */
  .topbar {
    height: calc(54px + env(safe-area-inset-top, 0px)) !important;
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .topbar .search { min-width: 0; height: 38px; }
  .topbar .search input { min-width: 0; }
  #tabbar {
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
  #tabbar .tb-item { flex: 1 1 0; min-width: 0; }

  /* 首页右下角背景音乐按钮：抬到底栏之上 */
  #hmMusic { bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important; }
  /* 购买弹幕提示：旧 top:72 会压住首页搜索框，移到搜索框下方 */

  /* ---------------------------------------------------------------------------
     3. 弹层 / 抽屉
     - v30 的 .overlay z-index 只有 100，而手机底部 #tabbar 是 900：
       确认下单、规格选择等贴底抽屉的底部按钮会被 tabbar 压住且点不到。
     - 遮罩层统一提到 2000，toast 提到 3000。
     - 弹层自身兜底可滚动；带 .oc2-body 的贴底抽屉让内容区独立滚动。
     --------------------------------------------------------------------------- */
  #modalRoot .overlay,
  .overlay,
  .chat-drawer-scrim { z-index: 2000 !important; }
  #toastRoot {
    z-index: 3000 !important;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    width: 100%;
    padding: 0 12px;
  }
  .toast { max-width: 86vw; }

  /* 普通居中弹窗：整层可滚动，矮屏下顶部/底部都能看到 */
  .overlay {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 10px
             calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .overlay .modal {
    margin: 12px auto;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
  }

  /* 贴底抽屉（确认下单 / 规格 / 商品详情 / 选打手 / 礼物等）：保持贴底 + 内部滚动 */
  .overlay:has(.oc2),
  .overlay:has(.td-wrap),
  .overlay:has(.sku-sheet),
  .overlay:has(.gp-sheet) {
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
  }
  /* 这里必须带 body.v30 / body.v31 前缀才压得过 theme-v30/v31 里的 86vh */
  body.v30 .overlay:has(.oc2) .modal,
  body.v30 .overlay:has(.td-wrap) .modal,
  body.v30 .overlay:has(.sku-sheet) .modal,
  body.v30 .overlay:has(.gp-sheet) .modal,
  body.v31 .overlay:has(.oc2) .modal,
  body.v31 .overlay:has(.td-wrap) .modal,
  body.v31 .overlay:has(.sku-sheet) .modal,
  body.v31 .overlay:has(.gp-sheet) .modal {
    margin: 0;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
  }
  /* 抽屉内容区/列表独立滚动（iOS 惯性） */
  .oc2-body,
  .td-body,
  .sku-sheet .oc2-body,
  .gp-sheet .gp-list,
  .op-list,
  .pf-form {
    min-height: 0;
    -webkit-overflow-scrolling: touch;
  }
  /* 选打手 / 选单子：只保留一层滚动（列表跟随抽屉高度伸缩，不再自己限高） */
  .gp-sheet { display: flex; flex-direction: column; }
  .gp-sheet .gp-list { flex: 1 1 auto; min-height: 0; max-height: none; }
  .op-list { max-height: none; }
  /* 兜底：个别老弹层（如“下小时单”）没有 .oc2-body 结构，
     但 .modal:has(> .oc2) 被旧层设成 overflow:hidden，内容过高就整段看不见。
     允许抽屉容器自身滚动：带 .oc2-body 的抽屉由内容区先吸收高度，外层不会真的产生滚动；
     没有 .oc2-body 的老弹窗则靠这一层滚动，保证提交按钮始终可达。 */
  body .overlay .modal:has(> .oc2) {
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  /* 贴底操作条：iPhone Home 条留白 */
  .oc2-foot {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }
  /* 非抽屉的普通弹窗底部按钮也不压 Home 条 */
  .modal { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }

  /* 聊天抽屉：全屏时让出刘海/状态栏（viewport-fit=cover 后顶部会顶到屏幕最上沿） */
  .chat-drawer {
    padding-top: env(safe-area-inset-top, 0px);
    box-sizing: border-box;
  }
  .cd-left-head, .cd-right-head {
    height: calc(56px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    box-sizing: border-box;
  }
  /* 手机聊天抽屉改为上下结构：会话列表在上（限高），聊天区在下。
     否则 390 宽时左侧 136px 会把输入框挤到只剩约 26px。 */
  body .chat-drawer { flex-direction: column; height: 100dvh; max-height: 100dvh; }
  body .chat-drawer .cd-left {
    width: 100%; min-width: 0; flex: none; max-height: 34dvh;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  body .chat-drawer .cd-right { flex: 1 1 auto; min-height: 0; }
  body .chat-drawer .cd-service { white-space: nowrap; flex: none; }
  body .chat-drawer .cd-input-row input { flex: 1 1 auto; min-width: 0; }
  body .chat-drawer .cd-tool { white-space: nowrap; padding: 0 6px; font-size: 12px; }
  .cd-input-row { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .cd-msgs { overscroll-behavior: contain; }

  /* ---------------------------------------------------------------------------
     4. 登录 / 注册页
     原实现：#authView 是 position:fixed + flex 居中且不滚动，
     注册表单在 640px 高的屏幕上高达 ~900px，顶部和底部按钮都被裁掉且无法滑动。
     --------------------------------------------------------------------------- */
  #authView {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    justify-content: center;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 12px
             calc(24px + env(safe-area-inset-bottom, 0px));
  }
  #authView .auth-card {
    margin: auto;
    width: 100%;
    max-width: 420px;
    padding: 22px 18px 20px;
  }
  #authView .auth-brand { margin-bottom: 14px; }
  #authView .auth-tabs { margin-bottom: 16px; }
  #authView .auth-field { margin-bottom: 12px; }

  /* ---------------------------------------------------------------------------
     5. iOS 输入框：字号 <16px 聚焦时 Safari 会强制放大整个页面（看起来像“页面错位/滑不动”）
     --------------------------------------------------------------------------- */
  #view input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  #view textarea,
  #view select,
  #authView input,
  #authView textarea,
  #authView select,
  .overlay input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  .overlay textarea,
  .overlay select,
  .chat-drawer input,
  .topbar .search input {
    font-size: 16px !important;
  }

  /* ---------------------------------------------------------------------------
     6. 长内容横向滚动 / 溢出兜底
     --------------------------------------------------------------------------- */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #view img, #view video { max-width: 100%; }
  .overlay img, .overlay video { max-width: 100%; }
  /* 长昵称/长地址等在卡片内换行而不是撑破屏幕 */
  .gr-name, .cc-name, .ot-name, .oc-title, .mall-name, .pool-item .pi-main b { min-width: 0; }

  /* ---------------------------------------------------------------------------
     7. 个人中心头部：原 3 列 grid（头像 | 资料 | 点赞/关注/粉丝竖排）在 390 宽下
        把等级进度条挤到 44px、文字被“编辑资料”按钮盖住。手机改为两列 + 数据横排：
        头像 | 资料，数据行在下方；按钮放在页签上方，不再压住文字。
     --------------------------------------------------------------------------- */
  body.v30 .pf-hd-inner,
  .pf-hd-inner {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 8px 14px;
    padding: 16px 16px 112px;
  }
  .pf-hd-inner .pf-ava { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .pf-hd-inner .pf-meta { grid-column: 2; grid-row: 1; min-width: 0; }
  .pf-hd-inner .pf-stats {
    grid-column: 1 / -1; grid-row: 2;
    flex-direction: row; align-items: center; justify-content: flex-start;
    gap: 22px; padding-top: 2px;
  }
  .pf-hd-inner .pf-st { flex-direction: row; align-items: baseline; gap: 4px; }
  .pf-hd-inner .pf-st b { font-size: 15px; }
  .pf-hd-inner .pf-st span { font-size: 12px; }
  .pf-hd-inner .lv-line { max-width: none; gap: 8px; margin-top: 6px; }
  .pf-hd-inner .lv-line span { font-size: 11px; }
  .pf-name { font-size: 19px; }
  .pf-header { min-height: 0; }
  /* 设置/编辑资料：压在页签（底部 36px）之上，留出间距 */
  body.v30 .pw-settings,
  .pw-settings { top: auto !important; bottom: 52px !important; right: 12px; }
  body.v30 .pw-edit,
  .pw-edit { top: auto !important; bottom: 52px !important; right: 104px; }

  /* ---------------------------------------------------------------------------
     7b. 陪玩中心（guide）：v30 手机端 #view 没有左右内边距，
         标题与分段页签会贴边。这里补 12px，并让页签行等宽。
     --------------------------------------------------------------------------- */
  body.v30 #view > .page-title { padding: 2px 12px 0; }
  body.v30 #view > .guide-subbar { width: auto; margin: 0 12px 12px; }

  /* ---------------------------------------------------------------------------
     7c. 打手主页（god detail）：桌面是「头像 | 资料 | 关注/粉丝」一排 + 技能卡横排，
         390 宽下资料只剩 84px，文字全挤成竖排。手机改为：
         头像 + 资料一行，关注/粉丝数据横排一行，技能卡纵向排列。
     --------------------------------------------------------------------------- */
  /* 注意：打手主页头卡是 .gold-scope，v30/v31 都有高特异性规则（body.v30 .gold-scope…），
     这里用同前缀 + !important 覆盖布局属性（只影响手机端）。 */
  body.v30 .gold-scope.gd-header .gd-hd-inner,
  body.v31 .gold-scope.gd-header .gd-hd-inner {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 10px 12px !important;
    padding: 12px 0 6px !important;
  }
  .gd-ava { width: 76px !important; height: 76px !important; flex: none; }
  .gd-ava .big-ava, .gd-ava .big-ava-img { width: 76px !important; height: 76px !important; font-size: 30px !important; }
  body.v30 .gold-scope .gd-meta,
  body.v31 .gold-scope .gd-meta {
    display: block !important;
    flex: 1 1 0;
    min-width: 0;
  }
  body.v30 .gold-scope .gd-name,
  body.v31 .gold-scope .gd-name {
    font-size: 17px !important;
    line-height: 1.45 !important;
    gap: 5px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .gd-name .gd-id { font-size: 12px !important; }
  .gd-name .gd-sep { font-size: 12px; }
  .gd-age { font-size: 11px; padding: 0 4px; }
  .gd-line2 { gap: 6px; margin-top: 6px; }
  .gd-sig { max-width: 100%; }
  body.v30 .gold-scope .gd-stats,
  body.v31 .gold-scope .gd-stats {
    flex: 1 1 100% !important;
    justify-content: flex-start !important;
    gap: 26px !important;
    padding: 8px 0 2px !important;
    border-top: 1px dashed var(--line);
    margin-top: 2px;
  }
  .gd-st { flex-direction: row; align-items: baseline; gap: 4px; }
  body.v30 .gold-scope .gd-st b, body.v31 .gold-scope .gd-st b { font-size: 15px !important; }
  body.v30 .gold-scope .gd-st span, body.v31 .gold-scope .gd-st span { font-size: 11px !important; }
  body.v30 .gold-scope .gd-actions,
  body.v31 .gold-scope .gd-actions {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding-bottom: 12px !important;
  }
  body.v30 .gold-scope .gd-act,
  body.v31 .gold-scope .gd-act {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0;
    height: 38px !important;
    font-size: 13px !important;
    padding: 0 6px !important;
  }
  body.v30 .gold-scope .gd-act.gd-act-primary,
  body.v31 .gold-scope .gd-act.gd-act-primary {
    flex: 1 1 0 !important;
    width: auto !important;
    font-size: 14px !important;
  }

  /* 数据条 / 页签 / 内容区补左右 12px，并让页签等宽 */
  body.v30 #view > .gd-statstrip { margin-left: 12px; margin-right: 12px; width: auto; }
  body.v30 #view > .gd-tabs { margin: 0 12px 12px; width: auto; }
  body.v30 #view > .gd-panes { padding: 0 12px; }
  .gd-tab { flex: 1 1 0; text-align: center; }
  /* 技能卡手机纵向排布，去固定宽按钮 */
  body.v30 .gold-scope .gd-skillcard,
  body.v31 .gold-scope .gd-skillcard,
  .gd-skillcard {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 14px !important;
    margin-bottom: 16px;
  }
  .gd-skillcard .gd-game-pill {
    align-self: flex-start;
    height: auto !important;
    line-height: 1.6;
    padding: 3px 12px;
    font-size: 12px;
  }
  .gd-skillcard .gd-skill-meta { flex: none !important; min-width: 0 !important; font-size: 13px; line-height: 1.7; }
  .gd-skillcard .gd-price-line { margin: 2px 0; }
  .gd-skillcard .gd-order-btn {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 4px;
    min-height: 44px;
  }

  /* ---------------------------------------------------------------------------
     8. 触屏点击目标兜底：原设计不少按钮只有 31~34px 高，手机上容易点不中
     --------------------------------------------------------------------------- */
  .top-actions .chip,
  .gods-chip,
  .hm-pill,
  .gr-act,
  .dur-chip,
  .rank-tab,
  .mall-cat,
  .cd-tool,
  .pf-htab,
  .gd-tab {
    min-height: 38px;
    box-sizing: border-box;
  }
  .gr-act { display: inline-flex; align-items: center; justify-content: center; }
}

/* -----------------------------------------------------------------------------
   9. 平板竖屏 / 手机横屏（768~1100px）：此时走桌面布局，但顶栏按钮过多会把
      “主题/退出”挤出屏幕，产生整页横向滚动。这里压缩顶栏，避免横滑。
   ----------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1100px) {
  .topbar { padding: 0 16px; gap: 10px; }
  .topbar .search { flex: 1 1 220px; min-width: 120px; }
  .top-actions { gap: 6px; }
  .top-actions .chip span { display: none; }
  #btnTheme, #btnLogout { display: none; }
  .top-username { display: none; }
}


/* -----------------------------------------------------------------------------
   10. 窄屏（≤399px，如 360px 安卓机）：首页头图改为上下排布
   原因：现版在 ≤767px 强制 hero 横排，360 宽时标题被压缩成两行、简介挤成 4 行。
   ----------------------------------------------------------------------------- */
@media (max-width: 399px) {
  body.v30 .hm-hero,
  body.v31 .hm-hero {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 16px !important;
    min-height: 0 !important;
  }
  body.v30 .hm-hero-main,
  body.v31 .hm-hero-main { width: 100%; min-width: 0; }
  body.v30 .hm-hero-name,
  body.v31 .hm-hero-name { font-size: 19px; }
  body.v30 .hm-hero-stats,
  body.v31 .hm-hero-stats {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 8px 14px;
    border-radius: 12px;
  }
  body.v30 .hm-hero-stats b,
  body.v31 .hm-hero-stats b { font-size: 17px; }
}


/* -----------------------------------------------------------------------------
   11. 个人中心头部：theme-v30 在手机端用 !important 把 padding-bottom 压成 56px，
       导致「编辑资料 / 设置」按钮压住等级进度文字（360/390 宽均可见）。
       这里用同优先级但更晚加载的规则覆盖，给按钮留出独立区域。
   ----------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body.v30 .pf-hd-inner {
    padding-bottom: 112px !important;
  }
}


/* -----------------------------------------------------------------------------
   12. 个人中心页签（主页 / 交易 / 背包）：统一为分段式胶囊
   原来三颗按钮大小、边框不一致，看着别扭；这里做成一个浅色轨道 + 选中填充。
   ----------------------------------------------------------------------------- */
body.v30 .pf-header-tabs {
  left: 12px; right: 12px; bottom: 6px; height: 40px;
  padding: 4px; gap: 4px; box-sizing: border-box;
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.v30.dark .pf-header-tabs { background: rgba(255, 255, 255, .06); }
body.v30 .pf-htab {
  flex: 1 1 0; height: 30px; min-height: 30px !important; padding: 0 !important;
  border: 0 !important; background: transparent !important;
  color: var(--t2); font-size: 14px; font-weight: 500;
  border-radius: 999px; line-height: 30px; text-align: center;
}
body.v30 .pf-htab.active {
  background: var(--accent) !important; color: #fff !important;
  box-shadow: 0 2px 8px rgba(31, 122, 255, .35);
}
body.v30 .pf-htab.active::after { display: none !important; }
@media (min-width: 768px) {
  body.v30 .pf-header-tabs { left: 20px; right: 20px; }
}

/* -----------------------------------------------------------------------------
   13. 首页搜索框：真实输入框（输入即筛选单子），并新增「已指定打手」提示条
   ----------------------------------------------------------------------------- */
body.v30 .hm-search { cursor: text; gap: 8px; }
body.v30 .hm-search input {
  flex: 1; min-width: 0; border: 0 !important; background: transparent !important;
  outline: 0; box-shadow: none !important; padding: 0 !important; min-height: 0 !important;
  font-size: 14px; color: var(--txt); height: 22px;
}
body.v30 .hm-search input::placeholder { color: var(--sub); }
body.v30 .hm-search .hm-q-clear {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .08); color: var(--sub); font-size: 14px; line-height: 22px; cursor: pointer;
}
body.v30.dark .hm-search .hm-q-clear { background: rgba(255, 255, 255, .12); }
body.v30 .hm-desig {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin: 0 0 12px; border-radius: 12px;
  border: 1px solid rgba(255, 170, 60, .45);
  background: linear-gradient(100deg, rgba(255, 196, 87, .16), rgba(255, 255, 255, .6));
  color: var(--txt);
}
body.v30.dark .hm-desig { background: linear-gradient(100deg, rgba(255, 196, 87, .12), rgba(255, 255, 255, .04)); }
body.v30 .hm-desig-ico { flex: none; color: #c9860b; display: inline-flex; }
body.v30 .hm-desig-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.v30 .hm-desig-txt b { font-size: 13px; }
body.v30 .hm-desig-txt span { font-size: 11.5px; color: var(--sub); margin-top: 2px; }
body.v30 .hm-desig-x {
  flex: none; border: 0; background: rgba(0, 0, 0, .06); color: var(--sub);
  font-size: 11.5px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
body.v30.dark .hm-desig-x { background: rgba(255, 255, 255, .08); }

/* -----------------------------------------------------------------------------
   14. 挑人：游戏版区置顶 + 「平台（端游/手游）+ 性别（女神/男神）」一行筛选
   ----------------------------------------------------------------------------- */
body.v30 .gods-gamebar { margin-bottom: 10px; }
body.v30 .gods-two-row {
  display: flex; align-items: center; gap: 8px; overflow-x: auto;
  padding: 2px 2px 10px; scrollbar-width: none;
}
body.v30 .gods-two-row::-webkit-scrollbar { display: none; }
body.v30 .gts-group { display: flex; align-items: center; gap: 6px; flex: none; }
body.v30 .gts-label { font-size: 11.5px; color: var(--sub); flex: none; margin-right: 2px; }
body.v30 .gods-two-row .gods-chip { flex: none; padding: 4px 14px; margin: 0; }
body.v30 .gts-div { flex: none; width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
@media (max-width: 420px) {
  body.v30 .gods-two-row .gods-chip { padding: 4px 11px; }
  body.v30 .gts-label { display: none; }
}


/* -----------------------------------------------------------------------------
   15. 手机端顶栏：去掉「搜索打手」（搜索统一放到挑人页），左侧显示俱乐部名称
   ----------------------------------------------------------------------------- */
body.v30 .topbar-brand { display: none; }
@media (max-width: 767px) {
  body.v30 .topbar .search { display: none !important; }
  body.v30 .topbar { gap: 8px; }
  body.v30 .topbar-brand {
    display: flex; align-items: center; min-width: 0;
    font-size: 16px; font-weight: 700; color: var(--txt); letter-spacing: .5px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  }
}

/* -----------------------------------------------------------------------------
   16. 单子「服务详情」里的图片（后台上传的详情图）
   ----------------------------------------------------------------------------- */
.td-detail-img {
  display: block; width: 100%; max-width: 100%; height: auto;
  border-radius: 10px; margin: 10px 0; background: rgba(0, 0, 0, .04);
}
body.dark .td-detail-img { background: rgba(255, 255, 255, .06); }

/* -----------------------------------------------------------------------------
   17. 首页弹幕改为「广播条下方占位行」，避免 fixed 浮层遮挡头图/指定打手横幅/单子卡片
   ----------------------------------------------------------------------------- */
body.v30 .hm-dm-slot { min-height: 0; margin: 0 0 10px; }
body.v30 .hm-dm-slot .hm-danmaku { padding-left: 2px; padding-right: 2px; margin: 0; }
body.v30 .hm-danmaku {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 1 !important;
  display: flex;
  justify-content: center;
  margin: 2px 0 8px;
  pointer-events: none;
}
body.v30 .hm-danmaku .dm-item { max-width: 92%; }


/* -----------------------------------------------------------------------------
   18. 首页购买弹幕：靠左显示（参考其他俱乐部样式）
   ----------------------------------------------------------------------------- */
body.v30 .hm-danmaku {
  justify-content: flex-start !important;
  padding-left: 16px;
  padding-right: 16px;
}

/* -----------------------------------------------------------------------------
   19. 挑人页优化（参考竞品「打手列表」）
   - 顶部 全部 / 男神 / 女神 页签（选中下划线）
   - 游戏、平台下拉 + 搜索框同一行
   - 卡片：头像 + 状态/语音、昵称 + 性别年龄 + 男神/女神标、简介、技能标签、底部价格 & 按钮
   - 语音欢迎语点击区域加大（原来 21px 高不好点）
   ----------------------------------------------------------------------------- */
body.v30 .gods-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
body.v30 .gods-gtabs { display: flex; align-items: center; gap: 26px; }
body.v30 .gods-gtabs .gt { position: relative; border: 0; background: none; padding: 8px 2px 11px; font-size: 16px; color: var(--sub); cursor: pointer; }
body.v30 .gods-gtabs .gt.active { color: var(--txt); font-weight: 700; }
body.v30 .gods-gtabs .gt.active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 22px; height: 3px; border-radius: 2px; background: #E84359; }

body.v30 .gods-ctrl { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
body.v30 .gods-sel {
  flex: none; max-width: 96px; height: 38px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--txt);
  font-size: 12px; padding: 0 6px; outline: 0;
}
body.v30 .gods-ctrl .gd-search-box { flex: 1; min-width: 0; max-width: none; margin: 0; height: 38px; padding: 0 12px; overflow: hidden; }
body.v30 .gods-ctrl .gd-search-box input { flex: 1; min-width: 0; width: 100%; font-size: 13px; }
body.v30 .gods-ctrl .gd-search-box button { display: none; }

body.v30 .god-row-card { padding: 14px; border-radius: 16px; gap: 12px; align-items: flex-start; }
body.v30 .gr-left { min-width: 96px; }
body.v30 .gr-ava { position: relative; width: 96px; height: 96px; }
body.v30 .gr-ava-img { width: 96px; height: 96px; border-radius: 14px; overflow: hidden; display: block; }
body.v30 .gr-dot { top: 8px; right: 8px; border-color: var(--card); }
body.v30 .gr-status {
  position: absolute; left: 6px; top: 6px; z-index: 2;
  max-width: calc(100% - 12px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 10.5px; line-height: 1; padding: 4px 7px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
body.v30 .gr-status.st-on { background: rgba(35, 178, 109, .92); }
body.v30 .gr-status.st-busy { background: rgba(246, 165, 60, .95); }
body.v30 .gr-status.st-off { background: rgba(0, 0, 0, .55); }
body.v30 .god-row-card .gr-voice {
  left: 8px; right: auto; bottom: 8px;
  width: auto; max-width: calc(100% - 16px);
  height: 26px; padding: 0 10px;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; font-size: 11.5px; z-index: 2;
}
body.v30 .gv-wave { display: inline-flex; align-items: center; gap: 2px; }
body.v30 .gv-wave i { display: block; width: 2px; border-radius: 2px; background: #8ff0b5; }
body.v30 .gv-wave i:nth-child(1) { height: 6px; }
body.v30 .gv-wave i:nth-child(2) { height: 12px; }
body.v30 .gv-wave i:nth-child(3) { height: 8px; }
body.v30 .gv-wave i:nth-child(4) { height: 14px; }
body.v30 .gv-dur { line-height: 1; }
body.v30 .god-row-card .gr-voice::after { content: ""; position: absolute; inset: -12px -10px; }
body.v30 .god-row-card .gr-voice .gv-play { width: 16px; height: 16px; }

body.v30 .gr-mid { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.v30 .gr-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.v30 .gr-name { font-size: 17px; font-weight: 800; }
body.v30 .gr-gender { font-size: 11.5px; color: var(--sub); font-weight: 600; }
body.v30 .gr-gender.male { color: #3b82f6; }
body.v30 .gr-gender.female { color: #ec4899; }
body.v30 .gr-badge {
  font-size: 10.5px; line-height: 16px; padding: 0 7px; border-radius: 4px;
  background: #fff3e8; color: #d97706; border: 1px solid #fde3c8; font-weight: 600;
}
body.v30.dark .gr-badge { background: rgba(217, 119, 6, .16); border-color: rgba(217, 119, 6, .35); color: #f0b35b; }
body.v30 .gr-intro {
  font-size: 11.5px; color: var(--sub); line-height: 1.5; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.v30 .gr-tags { margin-top: 3px; }
body.v30 .gr-meta { font-size: 11px; color: var(--sub); margin-top: 2px; }
body.v30 .gr-bottom { display: flex; align-items: center; gap: 6px; row-gap: 6px; flex-wrap: wrap; margin-top: 7px; }
body.v30 .gr-price { flex: none; font-size: 15px; font-weight: 800; color: #ff3f4f; }
body.v30 .gr-price i, body.v30 .gr-price em { font-size: 11px; font-style: normal; font-weight: 400; color: var(--sub); }
body.v30 .gr-price.gr-price-none { font-size: 11.5px; font-weight: 500; color: var(--sub); }
body.v30 .gr-acts { margin-left: auto; align-self: center; gap: 6px; }
body.v30 .gr-act { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; font-size: 12.5px; white-space: nowrap; }
body.v30 .gr-act.act-gift { background: #fff; border: 1px solid #f2b8c2; color: #e84359; }
body.v30.dark .gr-act.act-gift { background: transparent; border-color: rgba(232, 67, 89, .5); color: #ff7186; }
body.v30 .gr-act.act-order { background: #E84359; color: #fff; }


/* -----------------------------------------------------------------------------
   20. 桌面端打手卡片按钮：theme-v30 默认是竖排通栏，这里改回一行右侧按钮
   ----------------------------------------------------------------------------- */
@media (min-width: 768px) {
  body.v30 .gr-bottom { flex-wrap: nowrap; }
  body.v30 .gr-acts { flex-direction: row; width: auto; gap: 6px; justify-content: flex-end; }
  body.v30 .gr-act { width: auto; min-height: 32px; font-size: 12.5px; font-weight: 500; }
  body.v30 .gr-act.act-order { font-size: 12.5px; font-weight: 600; }
  body.v30 .gr-price { font-size: 17px; }
}


/* -----------------------------------------------------------------------------
   21. 个人中心 UI 重排：黑金卡 / 专属头像奖励 / 紧凑快捷入口
   ----------------------------------------------------------------------------- */
body.v30 .pf-home-inner { padding: 12px 12px 22px; }
body.v30 .pw-wallet-stack { display: flex; flex-direction: column; gap: 12px; }
body.v30 .pw-rights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
body.v30 .pw-rights .pw-right-row {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 2px; padding: 12px 10px; border-radius: 12px; min-height: 62px;
}
body.v30 .pw-rights .pw-right-row > span { font-size: 10.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 黑金卡 */
body.v30 .pw-card.pw-blackgold {
  background: linear-gradient(135deg, #17130d 0%, #261d12 48%, #3a2a14 100%);
  border: 1px solid rgba(232, 180, 74, .45);
  color: #f5e9d5;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 230, 170, .12);
}
body.v30 .pw-blackgold .pw-head b { color: #f6e3b8; font-size: 17px; letter-spacing: .5px; }
body.v30 .pw-blackgold .pw-link { color: #cdb08a; }
body.v30 .pw-blackgold .pw-desc { color: rgba(245, 233, 213, .66); }
body.v30 .pw-blackgold .pw-amount { color: #f6d68d !important; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
body.v30 .pw-blackgold .pw-bal span { color: rgba(245, 233, 213, .6); }
body.v30 .pw-withdraw-hint { display: inline-flex; align-items: center; font-size: 12px; color: #cdb08a; padding: 8px 2px; }

/* 专属头像奖励 */
body.v30 .pw-rewards-card { margin-top: 10px; }
body.v30 .pw-reward-list { display: flex; gap: 12px; overflow-x: auto; padding: 6px 0 2px; }
body.v30 .pw-reward-list::-webkit-scrollbar { display: none; }
body.v30 .pw-reward-item { flex: none; width: 88px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
body.v30 .pw-reward-ava {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(232, 180, 74, .55); background: #2a1d10;
}
body.v30 .pw-reward-name { font-size: 11px; color: var(--sub); max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.v30 .pw-reward-use {
  border: 1px solid var(--line); background: var(--card); color: var(--txt);
  font-size: 11px; padding: 3px 12px; border-radius: 999px; cursor: pointer;
}
body.v30 .pw-reward-use:active { transform: scale(.96); }

/* -----------------------------------------------------------------------------
   22. 悬浮客服按钮（屏幕右侧偏下；白色圆形按钮，点击打开平台客服会话）
   ----------------------------------------------------------------------------- */
.kefu-float {
  position: fixed; right: 12px; top: 62%; transform: translateY(-50%);
  z-index: 890;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  width: 52px; height: 52px; padding: 0;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 50%;
  background: #fff;
  color: #2563eb;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.kefu-float svg { width: 22px; height: 22px; flex: none; }
.kefu-float span { font-size: 10px; line-height: 1; color: #64748b; margin-top: 1px; }
.kefu-float:active { transform: translateY(-50%) scale(.94); }
.kefu-float:hover { box-shadow: 0 10px 26px rgba(15, 23, 42, .24); }
body.dark .kefu-float { background: #1e293b; color: #93c5fd; border-color: rgba(147, 197, 253, .25); box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
body.dark .kefu-float span { color: #cbd5e1; }
@media (min-width: 768px) {
  .kefu-float { right: 16px; top: 64%; width: 56px; height: 56px; }
  .kefu-float svg { width: 24px; height: 24px; }
  .kefu-float span { font-size: 11px; }
}

body.v30 .pw-blackgold .btn.ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(232, 180, 74, .5);
  color: #f6d68d;
}
body.v30 .pw-blackgold .btn.ghost:hover { background: rgba(255, 255, 255, .14); }

/* -----------------------------------------------------------------------------
   23. 首页：手机顶部栏隐藏；搜索框在广播条下方并缩小；筛选改为「标签 + 胶囊」分组卡片
   ----------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body.v30 .topbar { display: none !important; }
  body.v30 #view { padding-top: 10px; }
}
body.v30 .hm-search.hm-search-sm {
  height: 36px; margin: 0 0 12px; padding: 0 12px; border-radius: 999px;
}
body.v30 .hm-search.hm-search-sm input { font-size: 13px; }
body.v30 .hm-search.hm-search-sm svg { width: 14px; height: 14px; }
body.v30 .hm-filter {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 10px 12px; margin-bottom: 12px;
}
body.v30 .hm-frow { display: flex; align-items: flex-start; gap: 10px; }
body.v30 .hm-flabel {
  flex: none; font-size: 11.5px; color: var(--sub);
  line-height: 30px; letter-spacing: .5px;
}
body.v30 .hm-fchips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0; }
body.v30 .hm-filter .hm-pill { flex: none; height: 30px; font-size: 12px; padding: 0 11px; }
body.v30 .hm-filter .hm-pill.active { font-weight: 500; }

/* -----------------------------------------------------------------------------
   24. 首页分类宫格（后台创建分类：名称 + 图片）+ 进入公告弹窗
   ----------------------------------------------------------------------------- */
body.v30 .hm-cats { margin: 0 0 12px; }
body.v30 .hm-cats-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
body.v30 .hm-cats-head b { font-size: 13.5px; }
body.v30 .hm-cats-all {
  border: 1px solid var(--line); background: var(--card); color: var(--sub);
  height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; cursor: pointer;
}
body.v30 .hm-cats-all.active { background: var(--accent); border-color: var(--accent); color: #fff; }
body.v30 .hm-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
body.v30 .hm-cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: transparent; border: 0; padding: 0; cursor: pointer; min-width: 0;
}
body.v30 .hm-cat-img {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
body.v30 .hm-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.v30 .hm-cat-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--sub); }
body.v30 .hm-cat.active .hm-cat-img { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(47, 107, 255, .22); }
body.v30 .hm-cat-name {
  font-size: 12px; color: var(--txt); max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.v30 .hm-cat.active .hm-cat-name { color: var(--accent); font-weight: 600; }

/* 进入公告弹窗 */
.ann-pop { text-align: left; }
.ann-badge {
  display: inline-block; background: #ffe8ef; color: #ff5a79;
  font-size: 11px; padding: 2px 10px; border-radius: 6px; margin-bottom: 10px;
}
.ann-pop-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: #e64545; line-height: 1.4; }
.ann-pop-body { font-size: 13px; line-height: 1.9; color: var(--txt); max-height: 58vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ann-pop-body img { width: 100%; border-radius: 10px; margin: 8px 0; display: block; }
.news-rich { font-size: 13px; line-height: 1.9; color: var(--txt); white-space: normal; }
.news-rich img { max-width: 100%; border-radius: 10px; margin: 8px 0; display: block; }

/* -----------------------------------------------------------------------------
   25. 电脑端左侧导航选中态：暗金风格（替换原来的蓝底+青色描边+发光）
   ----------------------------------------------------------------------------- */
@media (min-width: 768px) {
  body.v30 .nav-item.active {
    color: #f2d492;
    background: linear-gradient(90deg, rgba(232, 180, 74, .18), rgba(232, 180, 74, .05));
    border-color: transparent;
    box-shadow: inset 3px 0 0 #e8b44a;
    font-weight: 600;
  }
  body.v30.dark .nav-item.active { box-shadow: inset 3px 0 0 #e8b44a; }
  body.v30 .nav-item.active .ico svg { color: #f2d492; }
  body.v30 .nav-item.active:hover {
    background: linear-gradient(90deg, rgba(232, 180, 74, .24), rgba(232, 180, 74, .08));
    color: #f9e2b0;
  }
}

/* -----------------------------------------------------------------------------
   26. 电脑端首页筛选/分类布局（与手机端不同：横向工具栏 + 左对齐，不再居中）
   ----------------------------------------------------------------------------- */
@media (min-width: 768px) {
  body.v30 .hm-filter {
    flex-direction: row; align-items: center; flex-wrap: wrap;
    gap: 10px 18px; padding: 12px 18px; border-radius: 14px;
  }
  body.v30 .hm-frow {
    flex: 0 1 auto; width: auto; align-items: center; gap: 8px;
  }
  body.v30 .hm-frow + .hm-frow {
    padding-left: 18px; border-left: 1px solid var(--line);
  }
  body.v30 .hm-flabel {
    flex: none; line-height: 32px; font-size: 12.5px; min-width: 30px; text-align: left;
  }
  body.v30 .hm-fchips { flex: 0 1 auto; flex-wrap: wrap; gap: 8px; }
  body.v30 .hm-filter .hm-pill { height: 32px; font-size: 12.5px; padding: 0 14px; }

  /* 分类宫格：电脑端固定小图块、左对齐，不随页面宽度拉成大块 */
  body.v30 .hm-cat-grid {
    display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 14px 16px;
  }
  body.v30 .hm-cat { width: 104px; flex: none; }
  body.v30 .hm-cat-img { border-radius: 16px; }
  body.v30 .hm-cat-name { font-size: 12.5px; }
}

/* -----------------------------------------------------------------------------
   27. 手机端首页顶部：搜索置顶并缩小、广播紧跟搜索、筛选更紧凑
   ----------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body.v30 .hm-wrap { gap: 8px; padding: 10px 12px 16px; }
  body.v30 .hm-search.hm-search-sm { height: 34px; margin: 0; padding: 0 12px; }
  body.v30 .hm-search.hm-search-sm input { font-size: 12.5px; }
  body.v30 .hm-search.hm-search-sm svg { width: 14px; height: 14px; }

  body.v30 .hm-notice-bar.hm-broadcast {
    height: 34px; margin: 0; padding: 0 12px;
    border-radius: 999px; font-size: 12px;
  }
  body.v30 .hm-broadcast .bc-track { font-size: 12px; }
  body.v30 .hm-dm-slot { margin: 0; }
  body.v30 .hm-danmaku { gap: 6px; }
  body.v30 .hm-danmaku .dm-item { font-size: 12px; padding: 5px 12px; }

  body.v30 .hm-filter { padding: 8px 10px; gap: 8px; border-radius: 14px; margin-bottom: 2px; }
  body.v30 .hm-frow { gap: 8px; }
  body.v30 .hm-flabel { line-height: 28px; font-size: 11px; min-width: 22px; }
  body.v30 .hm-fchips { gap: 6px; }
  body.v30 .hm-filter .hm-pill { height: 28px; min-height: 0; line-height: 26px; font-size: 11.5px; padding: 0 10px; }
  body.v30 .hm-filter .hm-pill .hp-ic { width: 14px; height: 14px; }

  body.v30 .hm-cat-grid { gap: 10px 12px; }
  body.v30 .hm-cat-name { font-size: 11.5px; }
}

/* -----------------------------------------------------------------------------
   28. 购买提示改为屏幕左侧悬浮 + 分类商品列表页
   ----------------------------------------------------------------------------- */
.hm-dm-float {
  position: fixed; left: 10px; top: 50%; z-index: 860;
  pointer-events: none; max-width: 76vw;
}
.hm-dm-float .hm-danmaku {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  margin: 0; padding: 0; background: none;
}
.hm-dm-float .dm-item {
  pointer-events: none; animation: hmDmIn .3s ease;
  background: rgba(17, 20, 28, .74); color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  font-size: 12px; padding: 7px 13px; border-radius: 999px;
  max-width: 76vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@keyframes hmDmIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) { .hm-dm-float { left: 24px; top: 58%; } }

/* 分类商品列表页 */
.cat-page { max-width: 920px; margin: 0 auto; padding: 12px 12px 8px; }
.cat-topbar { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; }
.cat-back {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--txt);
  font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.cat-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.cat-top-space { width: 34px; flex: none; }
.cat-sorts {
  display: flex; gap: 4px; overflow-x: auto; padding: 4px 2px 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.cat-sorts::-webkit-scrollbar { display: none; }
.cat-sort {
  flex: none; border: 0; background: transparent; color: var(--sub);
  font-size: 13px; padding: 7px 13px; border-radius: 999px; cursor: pointer;
}
.cat-sort.active { background: var(--card); color: var(--txt); font-weight: 600; }
.cat-arrow { font-size: 10px; margin-left: 2px; }
.cat-grid { padding-bottom: 6px; }
.cat-end { text-align: center; color: var(--sub); font-size: 12px; padding: 16px 0 26px; }
@media (min-width: 768px) { .cat-page { max-width: 1200px; padding: 18px 24px 8px; } }

/* -----------------------------------------------------------------------------
   29. 手机端筛选：两个下拉按钮（全部游戏 / 全部平台），替代原来的大卡片胶囊
   ----------------------------------------------------------------------------- */
.hm-dd-row { display: none; }
.hm-picker { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; padding: 2px; }
.hm-pick {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--txt); font-size: 14px; cursor: pointer; text-align: left;
}
.hm-pick img { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; flex: none; }
.hm-pick.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.hm-pick b { margin-left: auto; color: var(--accent); }
@media (max-width: 767px) {
  body.v30 .hm-filter {
    display: flex; flex-direction: row; align-items: stretch; gap: 8px;
    padding: 0; margin-bottom: 2px; background: none; border: 0; border-radius: 0;
  }
  body.v30 .hm-dd-row { display: flex; gap: 8px; width: 100%; }
  body.v30 .hm-frow-pc { display: none; }
  body.v30 .hm-dd {
    flex: 1 1 0; min-width: 0; height: 36px;
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--card);
    color: var(--txt); font-size: 13px; cursor: pointer;
  }
  body.v30 .hm-dd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.v30 .hm-dd-arrow { color: var(--sub); font-size: 11px; flex: none; }
}

/* -----------------------------------------------------------------------------
   30. 挑人筛选布局（手机端）：搜索框单独一行，游戏/平台两个下拉等宽一行，防止窄屏溢出
   ----------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body.v30 .gods-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
  body.v30 .gods-ctrl .gd-search-box {
    order: -1; flex: 0 0 100%; width: 100%;
    margin: 0 0 2px; height: 38px; padding: 0 14px;
    box-sizing: border-box; overflow: hidden;
  }
  body.v30 .gods-ctrl .gd-search-box input { width: 100%; min-width: 0; }
  body.v30 .gods-ctrl .gods-sel {
    flex: 1 1 0; width: auto; max-width: none; min-width: 0;
    height: 38px; box-sizing: border-box;
  }
}

/* 挑人搜索框细节：去掉系统 search 输入框自带的内边框/圆角；下拉高度对齐 */
@media (max-width: 767px) {
  body.v30 .gods-ctrl .gods-sel { height: 38px; min-height: 0; box-sizing: border-box; }
  body.v30 .gods-ctrl .gd-search-box input.gods-search-native,
  body.v30 .gods-ctrl .gd-search-box input {
    -webkit-appearance: none; appearance: none;
    border: 0; outline: 0; background: transparent; box-shadow: none;
    height: 100%; padding: 0;
  }
  body.v30 .gods-ctrl .gd-search-box input::-webkit-search-cancel-button,
  body.v30 .gods-ctrl .gd-search-box input::-webkit-search-decoration { display: none; }
}

/* -----------------------------------------------------------------------------
   31. 头像框奖励 + 会员卡按消费等级换样式
   ----------------------------------------------------------------------------- */
body.v30 .pw-membercard { position: relative; overflow: hidden; }
body.v30 .pw-member-progress { font-size: 11.5px; line-height: 1.5; color: rgba(245, 233, 213, .68); margin-top: 8px; }
body.v30 .pw-frame-current { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
body.v30 .pw-frame-current img { width: 56px; height: 56px; object-fit: contain; flex: none; }
body.v30 .pw-frame-current div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.v30 .pw-frame-current b { font-size: 13px; color: var(--txt); }
body.v30 .pw-frame-current span { font-size: 11px; color: var(--sub); line-height: 1.5; }
body.v30 .pw-reward-current { font-size: 10px; color: #f2d492; border: 1px solid rgba(232, 180, 74, .45); border-radius: 999px; padding: 1px 6px; }

/* 会员卡 5 档样式 */
body.v30 .pw-membercard.mc-tier-1 {
  background: linear-gradient(135deg, #3b414b 0%, #272c34 100%);
  border-color: rgba(255, 255, 255, .18);
}
body.v30 .mc-tier-1 .pw-head b { color: #fff; }
body.v30 .mc-tier-1 .pw-amount { color: #fff !important; text-shadow: none; }
body.v30 .mc-tier-1 .pw-desc, body.v30 .mc-tier-1 .pw-member-progress { color: rgba(255, 255, 255, .65); }

body.v30 .pw-membercard.mc-tier-2 {
  background: linear-gradient(135deg, #8a95a6 0%, #4a5361 55%, #2f3641 100%);
  border-color: rgba(225, 234, 246, .55);
}
body.v30 .mc-tier-2 .pw-head b { color: #fff; }
body.v30 .mc-tier-2 .pw-amount { color: #f2f7ff !important; }
body.v30 .mc-tier-2 .pw-desc, body.v30 .mc-tier-2 .pw-member-progress { color: rgba(245, 249, 255, .78); }

body.v30 .pw-membercard.mc-tier-3 {
  background: linear-gradient(135deg, #5b4718 0%, #2f240b 55%, #1d1708 100%);
  border-color: rgba(232, 180, 74, .6);
}
body.v30 .mc-tier-3 .pw-head b { color: #ffe7a3; }
body.v30 .mc-tier-3 .pw-amount { color: #ffe29a !important; }
body.v30 .mc-tier-3 .pw-desc, body.v30 .mc-tier-3 .pw-member-progress { color: rgba(255, 235, 190, .78); }

body.v30 .pw-membercard.mc-tier-4 {
  background: linear-gradient(135deg, #1d3050 0%, #241a4a 55%, #3a2a55 100%);
  border-color: rgba(140, 200, 255, .55);
  box-shadow: 0 10px 28px rgba(20, 40, 90, .35), inset 0 1px 0 rgba(200, 230, 255, .18);
}
body.v30 .mc-tier-4 .pw-head b { color: #cfe8ff; }
body.v30 .mc-tier-4 .pw-link { color: #9fc7ea; }
body.v30 .mc-tier-4 .pw-amount { color: #a8f0ff !important; text-shadow: 0 2px 12px rgba(80, 200, 255, .35); }
body.v30 .mc-tier-4 .pw-desc, body.v30 .mc-tier-4 .pw-member-progress { color: rgba(205, 230, 255, .8); }

/* 打手头像框叠加 */
body.v30 .god-ava { position: relative; }
body.v30 .god-ava-frame {
  position: absolute; left: -9%; top: -9%; width: 118%; height: 118%;
  object-fit: contain; pointer-events: none; z-index: 2;
}

/* -----------------------------------------------------------------------------
   38. 抢单池：游戏/端游筛选 + 卡片重排 + 悬浮客服可拖动
   ----------------------------------------------------------------------------- */
body.v30 .kefu-float { touch-action: none; cursor: grab; }
body.v30 .kefu-float.kefu-dragging { cursor: grabbing; box-shadow: 0 14px 30px rgba(15, 23, 42, .3); }

body.v30 .pool-filter {
  display: flex; align-items: center; gap: 9px; margin: 0 0 12px; flex-wrap: wrap;
}
body.v30 .pool-filter .pool-sel {
  flex: 1 1 0; min-width: 0; height: 38px; border-radius: 999px;
  border: 1px solid var(--pw-border); background-color: var(--pw-bg-elevated);
  color: var(--pw-text-1); padding: 0 30px 0 13px; font-size: 13px;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238892a6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
body.v30 .pool-filter .pool-count { flex: none; font-size: 12px; color: var(--pw-text-2); white-space: nowrap; }

body.v30 .pool-list { display: flex; flex-direction: column; gap: 12px; }
body.v30 .pool-item {
  display: block !important; padding: 14px; margin-bottom: 0 !important; border-radius: 16px;
  cursor: pointer; overflow: hidden;
}
body.v30 .pool-item .pi-top { display: flex; align-items: flex-start; gap: 12px; }
body.v30 .pool-item .pi-img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; }
body.v30 .pool-item .pi-title { flex: 1; min-width: 0; }
body.v30 .pool-item .pi-game { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 6px; }
body.v30 .pool-item .pi-game b { font-size: 15px; font-weight: 700; color: var(--pw-text-1); line-height: 1.3; }
body.v30 .pool-item .pi-plat {
  font-size: 11px; color: var(--pw-text-2); line-height: 1;
  padding: 3px 7px; border-radius: 6px; border: 1px solid var(--pw-border);
  background: var(--pw-bg-muted, rgba(255,255,255,.04));
}
body.v30 .pool-item .pi-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--pw-text-2); line-height: 1.45; }
body.v30 .pool-item .pi-sub .tag { font-size: 11px; padding: 2px 7px; margin: 0; }
body.v30 .pool-item .pi-price { flex: none; text-align: right; white-space: nowrap; }
body.v30 .pool-item .pi-price .gem { color: var(--pw-price-lg); font-size: 21px; font-weight: 800; }
body.v30 .pool-item .pi-note { display: block; font-size: 11px; color: var(--pw-text-2); margin-top: 3px; }
body.v30 .pool-item .pi-meta {
  display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--pw-border);
  font-size: 12px; color: var(--pw-text-2); line-height: 1.4;
}
body.v30 .pool-item .pi-meta span { display: flex; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.v30 .pool-item .pi-meta i { flex: none; width: 30px; color: var(--pw-text-3, var(--pw-text-2)); font-style: normal; }
body.v30 .pool-item .pi-actions { display: flex; gap: 10px; margin-top: 12px; }
body.v30 .pool-item .pi-actions .pi-btn { flex: 1; height: 44px; padding: 0 18px; border-radius: 12px; font-size: 16px; font-weight: 700; }

/* -----------------------------------------------------------------------------
   39. 个人中心：点赞/关注/粉丝下移 + 充值/去提现同一行
   ----------------------------------------------------------------------------- */
body.v30 .pf-hd-inner .pf-stats {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(120, 130, 150, .12);
}
body.v30.dark .pf-hd-inner .pf-stats,
body.dark .pf-hd-inner .pf-stats {
  border-top-color: rgba(255, 255, 255, .08);
}
body.v30 .pw-btn-row {
  display: flex; align-items: stretch; gap: 10px; margin-top: 10px;
}
body.v30 .pw-btn-row .pw-btn {
  flex: 1 1 0; width: auto; min-width: 0; margin: 0;
  min-height: 42px; padding: 0 14px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
body.v30 .pw-btn-row .pw-withdraw-hint {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 10px; min-height: 42px;
  border: 1px solid rgba(232, 180, 74, .35); border-radius: 12px;
}

/* -----------------------------------------------------------------------------
   40. 卡片按钮点击：只让按钮自己反馈，不要整张卡片缩放/描边
   ----------------------------------------------------------------------------- */
body.v30 .god-row-card,
body.v30 .pool-item {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* 点卡片任意位置（含按钮）时，卡片本体不再缩放/描边 */
body.v30 .god-row-card:active,
body.v30 .pool-item:active {
  transform: none !important;
  box-shadow: var(--pw-shadow-card) !important;
}
body.v30 .pool-item:active { border-color: var(--pw-border) !important; }
/* 触摸设备没有 hover，点完按钮后卡片不要保持高亮边框 */
@media (hover: none) {
  body.v30 .god-row-card:hover { transform: none !important; border-color: var(--pw-border) !important; }
  body.v30 .god-row-card:hover .gr-ava { border-color: inherit; }
}
/* 按钮自身保留轻微按压缩放 */
body.v30 .gr-act:active,
body.v30 .pi-btn:active { transform: scale(.97) !important; }
/* 有序号/按钮点击时，卡片不要出现焦点外框 */
body.v30 .god-row-card:focus,
body.v30 .god-row-card:focus-within,
body.v30 .pool-item:focus,
body.v30 .pool-item:focus-within { outline: none !important; }

/* -----------------------------------------------------------------------------
   41. 指定单 / 接单卡片（参考接单中心：订单编号 + 单子信息 + 合计/分成 + 查看详情/接单）
   ----------------------------------------------------------------------------- */
body.v30 .desig-item {
  margin-bottom: 12px; padding: 14px;
  background: var(--pw-bg-elevated); border: 1px solid var(--pw-border);
  border-radius: 16px; box-shadow: var(--pw-shadow-card);
}
body.v30 .desig-item .di-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.v30 .desig-item .di-no { font-size: 12px; color: var(--pw-text-2); word-break: break-all; }
body.v30 .desig-item .di-body { display: flex; align-items: flex-start; gap: 12px; margin-top: 11px; }
body.v30 .desig-item .di-img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
body.v30 .desig-item .di-main { flex: 1; min-width: 0; }
body.v30 .desig-item .di-main b { display: block; font-size: 15px; font-weight: 700; color: var(--pw-text-1); line-height: 1.35; }
body.v30 .desig-item .di-game { margin-top: 5px; font-size: 12px; color: var(--pw-text-2); }
body.v30 .desig-item .di-note {
  margin-top: 7px; font-size: 12.5px; color: var(--pw-text-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.v30 .desig-item .di-sum {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--pw-border);
  font-size: 13px; color: var(--pw-text-2);
}
body.v30 .desig-item .di-sum b { font-size: 18px; font-weight: 800; color: var(--pw-price-lg); }
body.v30 .desig-item .di-sum .di-share { font-size: 16px; color: var(--green, #10b981); }
body.v30 .desig-item .di-actions { display: flex; gap: 10px; margin-top: 12px; }
body.v30 .desig-item .di-actions .di-btn {
  flex: 1 1 0; min-width: 0; height: 42px; border-radius: 12px;
  font-size: 15px; font-weight: 700;
}

body.v30 .desig-item .di-prize {
  margin-top: 6px; padding: 5px 9px; display: inline-block;
  font-size: 12px; color: var(--gold); line-height: 1.4;
  background: rgba(232, 180, 74, .1); border: 1px solid rgba(232, 180, 74, .28);
  border-radius: 8px;
}

/* 陪玩中心五分段（抢单池/指定单/已接单/已完成/我的收入） */
body.v30 .guide-subbar { gap: 4px; overflow: hidden; }
body.v30 .guide-subbar .guide-sub {
  flex: 1 1 0; min-width: 0; padding: 8px 2px;
  font-size: 13px; white-space: nowrap;
}
@media (max-width: 380px) {
  body.v30 .guide-subbar .guide-sub { font-size: 12px; }
}

/* 首页单子卡片：参考截图，图片放大为近 1:1，卡片整体拉长 */
@media (max-width: 767px) {
  body.v30 .ot-grid { gap: 8px; }
  body.v30 .ot-media { aspect-ratio: 1 / 1; }
  body.v30 .ot-card { border-radius: 14px; }
  body.v30 .ot-body { padding: 9px 10px 12px; gap: 5px; }
  body.v30 .ot-name { font-size: 14.5px; line-height: 1.4; min-height: 40px; }
  body.v30 .ot-meta { font-size: 11.5px; }
  body.v30 .ot-price { font-size: 17px; }
}
