/* =============================================================
   电竞俱乐部服务平台 · 全局样式
   视觉规范 1:1 对齐第一套 H5「烟雨智游」(uni-app)
   —— 底 #f7f7f7 / 主渐变 #3c9cff→#5cadff / 选中蓝 #3c9cff→#2b85e4
   —— 悬浮胶囊毛玻璃 Tab(bottom 20px · h 60px · r 30px · blur 20px)
   —— 选中态琥珀 #f9ae3d / 价格 ￥ #f56c6c + 数字 #2b85e4
   ============================================================= */

:root {
  /* —— 品牌色 —— */
  --primary: #3c9cff;              /* 主色（对齐第一套 uView 蓝） */
  --primary-2: #5cadff;            /* 主色亮部（uView primary-light） */
  --primary-deep: #2b85e4;         /* 主色暗部（uView primary-dark） */
  --primary-disabled: #a0cfff;     /* 主色禁用态 */
  --grad-main: linear-gradient(135deg, #5cadff, #3c9cff);
  --grad-modern: linear-gradient(135deg, #3c9cff, #2b85e4);
  --grad-warm: linear-gradient(135deg, #f97316, #ef4444);

  /* —— 文字 —— */
  --text: #303133;
  --text-strong: #303133;
  --text-2: #303133;
  --text-3: #606266;
  --text-4: #909399;
  --text-5: #c0c4cc;
  --text-blue: #3c9cff;
  --text-blue-deep: #2b85e4;

  /* —— 价格 —— */
  --price-sym: #f56c6c;            /* ￥ 符号 */
  --price-num: #3c9cff;            /* 价格数字 */
  --red: #f56c6c;                  /* uView error */

  /* —— 容器 —— */
  --bg: #f7f7f7;                   /* page 底色（uView） */
  --card: #ffffff;
  --divider: rgba(0, 0, 0, .08);
  --divider-soft: #f2f3f5;
  --blue-soft: rgba(60, 156, 255, .06);
  --blue-soft-2: rgba(60, 156, 255, .10);

  /* —— 毛玻璃三种 —— */
  --glass-45: rgba(255, 255, 255, .45);
  --glass-55: rgba(255, 255, 255, .55);
  --glass-tab: rgba(240, 240, 240, .75);
  --glass-border: 1px solid rgba(255, 255, 255, .6);
  --glass-border-strong: 1px solid rgba(255, 255, 255, .7);
  --glass-shadow: 0 1px 10px rgba(0, 0, 0, .04), inset 0 .5px rgba(255, 255, 255, .8);
  --glass-shadow-strong: 0 1px 10px rgba(0, 0, 0, .04), inset 0 .5px rgba(255, 255, 255, .9);

  /* —— 圆角（24rpx=12px 为主） —— */
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-pill: 999px;

  /* —— 阴影 —— */
  --shadow-card: 0 1px 8px rgba(0, 0, 0, .04);
  --shadow-raise: 0 2px 8px rgba(0, 0, 0, .2);
  --shadow-blue: 0 2px 6px rgba(60, 156, 255, .3);
  --tab-on: #f9ae3d;               /* 底部 Tab 选中（uView warning） */

  /* ---------- 语义色（对齐第一套 uView） ---------- */
  --ok: #5ac725;                   /* 成功 */
  --warn: #f9ae3d;                 /* 警告 */
  --danger: #f56c6c;               /* 错误 */
  --accent: #f9ae3d;
  --info: #909399;
}

/* ---------- 基础 ---------- */
html { scrollbar-gutter: stable; overflow-x: hidden; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; max-width: 100%; }

body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, textarea, select, button { font-family: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; overflow-x: hidden; }
.wrap-pad { padding: 0 12px; }
.plain-content { padding: 12px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wrap { animation: fadeUp .28s ease-out; }

/* =============================================================
   顶栏 A：首页（搜索玻璃胶囊 + 客服圆钮）
   ============================================================= */
.home-topbar {
  position: sticky; top: 0; z-index: 25;
  background: transparent;
  padding: calc(12px + env(safe-area-inset-top)) 12px 6px;
}
.home-topbar-inner { display: flex; align-items: center; gap: 10px; }
.home-logo { flex-shrink: 0; display: flex; }
.home-logo-badge { display: flex; align-items: center; justify-content: center; color: var(--primary); }
.home-logo-badge svg { width: 26px; height: 26px; }
.home-logo-img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }

.home-search {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 6px;
  height: 48px;
  padding: 5px 16px;
  border-radius: 24px;
  background: var(--glass-45);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: background .18s;
}
.home-search:focus-within { background: rgba(255, 255, 255, .7); }
.hs-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-4); }
.hs-ph { font-size: 13px; color: var(--text-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.home-msg {
  position: relative; flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 24px;
  background: var(--glass-45);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--text-2);
}
.home-msg .hs-icon { width: 20px; height: 20px; }
.home-msg-dot {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  border: 2px solid #fff;
}

/* =============================================================
   顶栏 B：普通页（胶囊返回 + 居中标题）
   ============================================================= */
.sub-topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 246, 250, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding-top: env(safe-area-inset-top);
}
.sub-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 50px; padding: 0 12px;
}
.sub-back {
  width: 40px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #dadbde; border-radius: 100px;
  background: rgba(255, 255, 255, .9);
  color: #606266;
}
.sub-back svg { width: 20px; height: 20px; }
.navbar-capsule {
  display: flex; align-items: center;
  border: 1px solid #dadbde; border-radius: 100px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, .9);
}
.navbar-btn { display: flex; padding: 2px 4px; color: #606266; }
.navbar-btn svg { width: 18px; height: 18px; }
.navbar-divider { width: 1px; height: 16px; background: #dadbde; margin: 0 4px; }
.sub-title { font-size: 17px; font-weight: 600; color: var(--text-strong); }
.sub-right { width: 66px; display: flex; justify-content: flex-end; }

/* =============================================================
   顶栏 C：工作台（后台 / 打手端）
   ============================================================= */
.wb-topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  padding-top: env(safe-area-inset-top);
}
.wb-topbar-in {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 14px;
}
.wb-brand {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: var(--text-strong);
  white-space: nowrap; letter-spacing: .2px; flex-shrink: 0;
}
.wb-brand-ico { width: 20px; height: 20px; color: var(--primary); }
.wb-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.wb-nav::-webkit-scrollbar { display: none; }
.wb-nav-a {
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 13px; color: var(--text-3); white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.wb-nav-a:hover { color: var(--primary); background: var(--blue-soft-2); }
.wb-nav-a.on { color: #fff; font-weight: 600; background: var(--grad-modern); box-shadow: var(--shadow-blue); }
.wb-nav-a-brief { font-size: 12.5px; color: var(--text-4); white-space: nowrap; }
.wb-nav-blink { flex: 1; }
.wb-exit { font-size: 12.5px; color: var(--text-4); white-space: nowrap; flex-shrink: 0; }
.wb-exit:hover { color: var(--red); }
.wb-search { position: relative; flex-shrink: 0; display: flex; align-items: center; }
.wb-search-ico { position: absolute; left: 10px; width: 14px; height: 14px; color: var(--text-4); pointer-events: none; }
.wb-search-in {
  width: 150px; background: #fff; border: 1px solid var(--divider);
  color: var(--text); font-size: 12.5px; padding: 7px 12px 7px 30px;
  border-radius: var(--r-pill); outline: none; transition: all .2s;
}
.wb-search-in::placeholder { color: var(--text-5); }
.wb-search-in:focus { border-color: var(--primary); width: 190px; }
.wb-topbar-booster { background: rgba(255, 255, 255, .78); }
.wb-page { padding: 14px 14px 40px; }
@media (max-width: 760px) { .wb-search-in { width: 110px; } .wb-search-in:focus { width: 120px; } }
@media (max-width: 560px) { .wb-nav-a-brief { display: none; } }

/* =============================================================
   登录 / 注册（auth-page 无壳）
   ============================================================= */
.auth-page { background: var(--bg); min-height: 100vh; }
.auth-wrap {
  max-width: 420px; margin: 0 auto;
  padding: calc(48px + env(safe-area-inset-top)) 24px 40px;
}
.auth-brand-logo {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--primary);
}
.auth-brand-logo svg, .auth-brand-logo img { width: 60px; height: 60px; border-radius: 16px; }
.auth-title { font-size: 26px; font-weight: 700; color: var(--text-strong); text-align: center; }
.auth-sub { font-size: 13px; color: var(--text-4); text-align: center; margin-top: 6px; }
.auth-foot { font-size: 12px; color: var(--text-5); text-align: center; margin-top: 22px; line-height: 1.7; }
.auth-page .card { margin-top: 20px; }

/* ---------- 提示条 ---------- */
.flash {
  margin: 12px; padding: 11px 14px;
  border-radius: var(--r-m);
  font-size: 13px;
  background: var(--blue-soft-2); color: var(--text-blue-deep);
  border: 1px solid rgba(60, 156, 255, .18);
}
.flash-error { background: rgba(250, 85, 72, .08); color: var(--red); border-color: rgba(250, 85, 72, .2); }
.flash-success { background: rgba(31, 157, 99, .10); color: #1f9d63; border-color: rgba(31, 157, 99, .22); }
.flash-warn { background: rgba(245, 166, 35, .12); color: #a15c00; border-color: rgba(245, 166, 35, .28); }

/* =============================================================
   公告
   ============================================================= */
.notice-bar {
  margin: 10px 10px 0;
  background: var(--glass-45);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; overflow: hidden;
}
.notice-bar-tag {
  flex-shrink: 0; font-size: 11px; font-weight: 600; color: #fff;
  background: var(--grad-modern); border-radius: var(--r-pill); padding: 2px 9px;
}
.notice-bar-scroll { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.notice-bar-txt { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.notice-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px 8px;
}
.notice-head-title { font-size: 17px; font-weight: 600; color: var(--text-strong); }
.notice-tag {
  font-size: 11px; color: var(--primary); background: var(--blue-soft-2);
  border-radius: var(--r-pill); padding: 2px 9px;
}
.notify-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 12px;
  background: #fff; border-radius: var(--r-m);
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}
.notify-item .tg { flex: 1; min-width: 0; }
.notify-dot {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); margin-top: 6px;
}

/* 消息页·联系客服入口（链接由后台系统设置→客服通道配置） */
.msg-service {
  display: flex; align-items: center; gap: 12px;
  margin: 10px 12px 0; padding: 14px;
  border-radius: var(--r-m);
  background: #fff; box-shadow: var(--shadow-card);
  border: 1px solid var(--blue-soft-2);
}
.msg-service-ico {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft-2); color: var(--primary);
}
.msg-service-ico svg { width: 20px; height: 20px; }
.msg-service-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.msg-service-txt b { font-size: 14px; color: var(--text-strong); }
.msg-service-txt i { font-style: normal; font-size: 12px; color: var(--text-3); }
.msg-service-arrow { flex-shrink: 0; font-size: 20px; color: var(--text-5); }

/* =============================================================
   首页轮播
   ============================================================= */
.home-banner { padding: 10px 10px 0; }
.home-banner-inner {
  position: relative; overflow: hidden;
  border-radius: 5px;
  background: #e9eef5;
}
.home-banner-track { display: flex; transition: transform .45s ease; }
.home-banner-slide {
  flex: 0 0 100%; width: 100%;
  position: relative; padding-bottom: 51%;
  background: #e9eef5;
}
.home-banner-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-banner-link { position: absolute; inset: 0; z-index: 2; }
.home-banner-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 5px; z-index: 3;
}
.home-banner-dots i {
  width: 6px; height: 6px; border-radius: 100px;
  background: rgba(255, 255, 255, .35); transition: background .25s ease;
}
.home-banner-dots i.on { background: #fff; }

/* =============================================================
   通用卡片 / 页头
   ============================================================= */
.card {
  background: #fff;
  border-radius: var(--r-l);
  box-shadow: var(--shadow-card);
  margin: 0 12px 12px;
  padding: 14px 12px;
}
.card-pad { padding: 16px; }
.card-title { font-size: 15px; font-weight: 700; color: var(--text-strong); margin-bottom: 12px; }
.page-head { padding: 14px 12px 6px; }
.page-title { font-size: 17px; font-weight: 600; color: var(--text-strong); }

/* =============================================================
   游戏一级分类 / 二级标签 / 筛选（浅蓝胶囊）
   ============================================================= */
.cat-tabs { padding: 12px 10px 0; }
.cat-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 5px 0; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  height: 36px; min-width: 62px;
  padding: 0 14px;
  border-radius: 100px;
  background: var(--blue-soft);
  border: 1px solid rgba(60, 156, 255, .1);
  color: #7a8a9a;
  font-size: 12px;
  white-space: nowrap;
  transition: all .3s ease;
}
.cat-tab.on {
  background: var(--grad-modern);
  color: #fff; font-weight: 700;
  border-color: transparent;
  transform: scale(1.02);
  box-shadow: 0 2px 7px rgba(43, 133, 228, .35);
}

.filters, .cat-scroll.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 12px 4px; }
.filters::-webkit-scrollbar { display: none; }
.clf-filter, .st-filter {
  flex-shrink: 0; padding: 6px 15px; border-radius: var(--r-pill);
  font-size: 12.5px; color: #7a8a9a;
  background: var(--blue-soft); border: 1px solid rgba(60, 156, 255, .1);
  transition: all .25s ease;
}
.clf-chip, .sort-pill {
  flex-shrink: 0; padding: 6px 15px; border-radius: var(--r-pill);
  font-size: 12px; color: #7a8a9a;
  background: var(--blue-soft); border: 1px solid rgba(60, 156, 255, .1);
  transition: all .25s ease;
}
.clf-filter.on, .st-filter.on, .clf-chip.on, .sort-pill.on {
  background: var(--grad-modern); color: #fff; font-weight: 700;
  border-color: transparent; box-shadow: 0 2px 7px rgba(43, 133, 228, .35);
}

/* =============================================================
   商品瀑布流卡片（第一套首页卡片）
   ============================================================= */
.goods-section { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.goods-section-title-text { font-size: 16px; font-weight: 700; color: var(--text-strong); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-section-count { font-size: 12px; color: var(--text-4); flex-shrink: 0; }
.goods-section-right { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; }

.goods-list {
  padding: 0 8px 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-items: start;
}
.goods-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: -2px -2px 3px rgba(0, 0, 0, .1), 2px -2px 3px rgba(0, 0, 0, .1),
              -2px 2px 3px rgba(0, 0, 0, .1), 2px 2px 3px rgba(0, 0, 0, .1);
  transition: transform .2s ease;
}
.goods-card:active { transform: scale(.985); }
.goods-img-wrap { position: relative; width: 100%; padding-bottom: 100%; background: #f0f2f5; overflow: hidden; }
.goods-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.goods-badge {
  position: absolute; left: 0; top: 0;
  padding: 3px 9px;
  background: rgba(0, 0, 0, .62); color: #fff;
  font-size: 11px; font-weight: 500;
  border-radius: 0 0 8px 0;
}
.goods-badge-sale { background: var(--grad-warm); }
.sold-out {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .45);
  color: #fff; font-size: 13px; font-weight: 600;
}

.goods-info { padding: 10px; background: #f8f9fc; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.goods-title {
  position: relative;
  padding-left: 10px;
  font-size: 15px; font-weight: 800; color: #000;
  line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.goods-title::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3.5px; height: 15px; background: #000;
}
.goods-sub { font-size: 12px; color: #1a1a1a; margin-top: 4px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-foot { display: flex; align-items: baseline; flex-wrap: wrap; margin-top: auto; padding-top: 10px; overflow: hidden; }
.goods-price { color: var(--price-num); font-weight: 800; font-size: 15px; line-height: 1; flex-shrink: 0; }
.goods-price-unit { font-size: 13px; color: var(--price-sym); font-weight: 800; flex-shrink: 0; }
.goods-price-gulp { color: var(--text-4); text-decoration: line-through; font-size: 11px; margin-left: 4px; }
.goods-foot-limit { color: var(--text-4); font-size: 11px; margin-left: auto; white-space: nowrap; flex-shrink: 0; }
.goods-tag {
  padding: 2px 8px; border-radius: 6px;
  background: var(--blue-soft-2); color: var(--primary);
  font-size: 11px; font-weight: 600;
}
.price { color: var(--price-num); font-weight: 800; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: var(--r-pill);
  font-size: 11px; color: var(--primary);
  background: var(--blue-soft-2); border: 1px solid rgba(60, 156, 255, .14);
}
.tag-game { background: rgba(245, 166, 35, .12); color: #a15c00; border-color: rgba(245, 166, 35, .25); }
.tag-pick { background: var(--grad-modern); color: #fff; border-color: transparent; }

/* =============================================================
   分类页（左栏 + 右栏）
   ============================================================= */
.classify-layout { display: flex; gap: 10px; padding: 10px 10px 28px; align-items: flex-start; }
.classify-side {
  flex-shrink: 0; width: 92px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--glass-55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border-strong);
  border-radius: var(--r-m);
  padding: 6px;
}
.classify-side-item {
  padding: 11px 4px; text-align: center;
  font-size: 13px; color: var(--text-3);
  border-radius: var(--r-s);
  transition: all .2s;
}
.classify-side-item.on {
  background: var(--grad-modern); color: #fff; font-weight: 700;
  box-shadow: var(--shadow-blue);
}
.classify-main { flex: 1; min-width: 0; }
.classify-card {
  display: flex; gap: 10px;
  background: var(--glass-55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border-strong);
  border-radius: var(--r-m);
  box-shadow: var(--glass-shadow-strong);
  padding: 10px;
  margin-bottom: 10px;
}
.classify-card-img { width: 78px; height: 78px; border-radius: var(--r-m); overflow: hidden; flex-shrink: 0; background: #f0f2f5; }
.classify-card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.classify-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.classify-card-title { font-size: 14px; font-weight: 700; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classify-card-meta { font-size: 12px; color: var(--text-4); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classify-card-price { margin-top: auto; font-size: 15px; font-weight: 800; color: var(--price-num); }
.clf-price { font-size: 15px; font-weight: 800; color: var(--price-num); }
.clf-price-in { font-size: 12px; font-weight: 800; color: var(--price-sym); }

/* =============================================================
   陪玩大厅 / 打手卡 / 排行榜
   ============================================================= */
.hall-card, .player-card {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--glass-55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border-strong);
  border-radius: var(--r-m);
  box-shadow: var(--glass-shadow-strong);
  padding: 12px; margin: 0 10px 10px;
}
.grab-heat { font-size: 11px; color: var(--text-4); }
.player-main { flex: 1; min-width: 0; }
.player-name { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.player-meta { font-size: 12px; color: var(--text-4); margin-top: 3px; }
.player-tag { display: inline-flex; padding: 2px 8px; border-radius: var(--r-pill); font-size: 11px; background: var(--blue-soft-2); color: var(--primary); }
.player-games { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }
.timeline { padding: 4px 0; }
.tl-item { display: flex; gap: 10px; padding: 8px 0; }
.tl-img { width: 56px; height: 56px; border-radius: var(--r-s); object-fit: cover; flex-shrink: 0; background: #f0f2f5; }
.tl-text { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); }
.tl-time { font-size: 11px; color: var(--text-5); flex-shrink: 0; }

.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 18px 12px 4px; }
.podium-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.podium-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #f0f2f5; }
.podium-badge { width: 24px; height: 24px; }
.podium-name { font-size: 12px; color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-games, .podium-grade { font-size: 11px; color: var(--text-4); }
.podium-meta { font-size: 11px; color: var(--primary); font-weight: 700; }
.stars, .stars-sm { display: inline-flex; gap: 1px; color: var(--tab-on); font-size: 12px; }
.stars-sm { font-size: 11px; }
.star, .rating-star { width: 12px; height: 12px; color: var(--tab-on); }
.fav-btn, .fav-tiny, .fav-lg { color: var(--red); }
.fav-row { display: flex; align-items: center; gap: 8px; }
.follow-mini { font-size: 12px; color: var(--primary); }

/* =============================================================
   我的（第一套「我的」页）
   ============================================================= */
.mine-page { min-height: 100vh; }
.mine-content { padding-bottom: 12px; }
.mine-hero { padding: 8px 12px 0; }
.mine-profile { display: flex; align-items: center; gap: 12px; }
.mine-avatar {
  width: 60px; height: 60px; border-radius: 18px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #9aa8bf, #7688a5);
  object-fit: cover; flex-shrink: 0;
  border: 2px solid #fff;
}
.mine-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.mine-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mine-name { font-size: 18px; font-weight: 600; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-id { font-size: 11px; color: #7b7b7a; }
/* 我的页·头像旁「老板/打手」切换按钮（对齐第一套） */
.identity-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 25px;
  background: var(--glass-45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
  font-size: 12px; font-weight: 600; color: #000;
  cursor: pointer;
}
.identity-btn-ico { width: 16px; height: 16px; }

/* 切换身份弹窗 */
.identity-mask {
  position: fixed; inset: 0; z-index: 1300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(0, 0, 0, .5);
  animation: mask-in .2s ease;
}
.identity-popup {
  width: 100%; max-width: 340px;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}
.identity-popup-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 10px;
}
.identity-popup-title { font-size: 16px; font-weight: 700; color: var(--text-strong); }
.identity-popup-close {
  border: none; background: none; padding: 0 4px;
  font-size: 24px; line-height: 1; color: var(--text-3); cursor: pointer;
}
.identity-option {
  display: flex; align-items: center; gap: 12px;
  margin: 0 12px 12px; padding: 14px;
  border-radius: 14px; text-decoration: none;
  background: #f7f9fc; border: 1px solid rgba(0, 0, 0, .05);
}
.identity-option.on { background: rgba(60, 156, 255, .08); border-color: rgba(60, 156, 255, .35); }
.identity-radio {
  width: 20px; height: 20px; flex-shrink: 0;
  border-radius: 50%; border: 2px solid #c7d2e0;
}
.identity-option.on .identity-radio {
  border-color: var(--primary);
  background: radial-gradient(circle, var(--primary) 0 40%, transparent 44%);
}
.identity-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.identity-text b { font-size: 14px; color: var(--text-strong); }
.identity-text i { font-style: normal; font-size: 12px; color: var(--text-3); }
.mine-card {
  background: #fff;
  border-radius: var(--r-l);
  box-shadow: var(--shadow-card);
  margin: 0 12px 12px;
  padding: 16px 12px;
}
.mine-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mine-card-title { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.mine-card-link { font-size: 11px; color: #000; display: flex; align-items: center; gap: 3px; }
.mine-order-grid { display: flex; justify-content: space-between; }
.mine-order-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mine-order-icon { width: 24px; height: 24px; object-fit: contain; }
.mine-order-label { font-size: 12px; color: var(--text-2); }
.mine-order-dot {
  position: absolute; top: -2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.mine-balance {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 7px 15px;
  border-radius: var(--r-l);
  background: var(--grad-modern);
  box-shadow: var(--shadow-raise);
}
.mine-balance-left { display: flex; flex-direction: column; gap: 6px; }
.mine-balance-label { font-size: 10px; color: rgba(255, 255, 255, .8); }
.mine-balance-num { font-size: 20px; font-weight: 700; color: #bfdbfe; }
.mine-balance-unit { font-size: 12px; color: rgba(255, 255, 255, .8); }
.mine-menu-grid { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.mine-menu-item { position: relative; width: 60px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; }
.mine-menu-icon { width: 18px; height: 18px; object-fit: contain; }
.mine-menu-label { font-size: 12px; color: var(--text-3); text-align: center; }
.mine-menu-dot {
  position: absolute; top: 0; right: 6px;
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 15px; text-align: center;
}
.mine-menu-count { font-size: 11px; color: var(--text-5); }

/* =============================================================
   订单
   ============================================================= */
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-no { font-size: 12px; color: var(--text-4); }
.order-dot {
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.o-chip, .st-chip {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600;
  background: var(--blue-soft-2); color: var(--primary);
}
.o-chip.ok, .st-chip.ok, .st-ok { background: rgba(31, 157, 99, .12); color: #1f9d63; }
.o-chip.warn, .st-chip.warn, .st-warn { background: rgba(245, 166, 35, .14); color: #a15c00; }
.o-chip.st-danger, .st-chip.st-danger, .st-danger { background: rgba(250, 85, 72, .12); color: var(--red); }
.o-summary { display: flex; flex-direction: column; gap: 6px; }
.o-no-wrap { white-space: nowrap; }

.st-steps { display: flex; flex-direction: column; gap: 0; padding: 4px 0; }
.st-step { display: flex; gap: 12px; align-items: flex-start; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 5px; }
.st-line { width: 2px; flex: 1; min-height: 22px; background: var(--divider); margin-left: 4px; }
.st-steps-off .st-dot { background: var(--divider); }
.st-steps-off .st-name, .st-steps-off .st-time { color: var(--text-5); }
.st-name { font-size: 13px; font-weight: 600; color: var(--text-strong); }
.st-time { font-size: 11px; color: var(--text-4); }
.st-muted { color: var(--text-4); font-size: 12px; }

/* =============================================================
   聊天
   ============================================================= */
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #f0f2f5; }
.chat-bubble {
  max-width: 72%;
  padding: 9px 13px;
  border-radius: var(--r-m);
  background: #fff;
  font-size: 13px; color: var(--text);
  box-shadow: var(--shadow-card);
  word-break: break-word;
}

/* =============================================================
   收银台 / 充值（统一蓝色体系）
   —— 金额主视觉整块通栏，不再嵌在白色卡片里互相套娃；
   —— 订单信息用「标签 + 右对齐值」的平铺行，不再用内层白卡；
   —— 支付方式做成整块可点的大卡片，主推项淡蓝底 + 蓝色胶囊按钮。
   ============================================================= */
.pay-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 12px 10px;
}
.pay-back {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 5px 11px 5px 7px;
  border-radius: var(--r-pill);
  background: var(--blue-soft);
  color: var(--text-3);
  font-size: 13px;
  transition: background .18s, color .18s;
}
.pay-back:hover { background: var(--blue-soft-2); color: var(--primary-deep); }
.pay-back svg { width: 14px; height: 14px; }
.pay-title { font-size: 16px; font-weight: 700; color: var(--text-strong); }

/* 金额主视觉：通栏蓝色块，与 .card 保持同一外边距，左右对齐 */
.pay-hero {
  position: relative;
  overflow: hidden;
  margin: 0 12px 12px;
  padding: 22px 18px 18px;
  border-radius: var(--r-l);
  background: var(--grad-modern);
  box-shadow: var(--shadow-blue);
  color: #fff;
}
/* 右上角柔光装饰，避免整块纯色显得单薄 */
.pay-hero::after {
  content: "";
  position: absolute; top: -46px; right: -34px;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  pointer-events: none;
}
.pay-hero-label { position: relative; font-size: 12px; color: rgba(255, 255, 255, .82); }
.pay-hero-val {
  position: relative;
  margin-top: 4px;
  font-size: 34px; font-weight: 800; line-height: 1.15;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}
.pay-hero-val small { font-size: 17px; font-weight: 700; margin-right: 2px; }
.pay-hero-meta {
  position: relative;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: 12px; color: rgba(255, 255, 255, .88);
}
.pay-hero-meta b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-hero-chip {
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .2);
  font-size: 11px;
}

/* 标签 + 右对齐值的平铺信息行 */
.pay-rows { display: flex; flex-direction: column; }
.pay-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--divider-soft);
  font-size: 13px;
}
.pay-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pay-row > i {
  flex-shrink: 0; width: 80px; padding-top: 1px;
  font-style: normal; font-size: 12px; color: var(--text-4);
}
.pay-row > span {
  flex: 1; min-width: 0;
  text-align: right;
  color: var(--text); font-weight: 600;
  word-break: break-all;
}
.pay-row > span.is-primary { color: var(--primary-deep); font-weight: 700; }

/* 支付方式 */
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: var(--r-m);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.pay-method:hover:not(:disabled) { border-color: var(--primary); background: var(--blue-soft); }
.pay-method-ico {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: var(--blue-soft-2);
  color: var(--primary-deep);
}
.pay-method-ico svg { width: 22px; height: 22px; }
.pay-method-main { flex: 1; min-width: 0; }
.pay-method-title { display: block; font-size: 14px; font-weight: 600; color: var(--text-strong); }
.pay-method-title small { margin-left: 4px; font-size: 11px; font-weight: 500; color: var(--text-4); }
.pay-method-sub { display: block; margin-top: 3px; font-size: 11px; color: var(--text-4); }
.pay-method-go {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--blue-soft-2);
  color: var(--primary-deep);
  font-size: 12px; font-weight: 600;
}
/* 主推的云支付：淡蓝底 + 蓝色描边，图标与按钮用主渐变 */
.pay-method-primary {
  border-color: rgba(60, 156, 255, .32);
  background: linear-gradient(135deg, rgba(92, 173, 255, .10), rgba(60, 156, 255, .16));
}
.pay-method-primary:hover:not(:disabled) { border-color: var(--primary); background: linear-gradient(135deg, rgba(92, 173, 255, .16), rgba(60, 156, 255, .22)); }
.pay-method-primary .pay-method-ico { background: var(--grad-main); color: #fff; }
.pay-method-primary .pay-method-go { background: var(--grad-main); color: #fff; box-shadow: var(--shadow-blue); }
.pay-method:disabled { opacity: .6; cursor: not-allowed; background: #fafafa; }
.pay-method:disabled .pay-method-go { background: #eef0f3; color: var(--text-5); box-shadow: none; }

/* 提示条（余额不足 / 未开启云支付等） */
.pay-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--r-m);
  background: rgba(249, 174, 61, .1);
  color: #a8630a;
  font-size: 12px; line-height: 1.65;
}
.pay-note a { color: var(--primary-deep); font-weight: 600; }

/* 充值页：金额快选 */
.pay-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.pay-quick-item {
  padding: 10px 4px;
  border: 1px solid var(--divider);
  border-radius: var(--r-m);
  background: #fff;
  color: var(--text-3);
  font-size: 14px; font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.pay-quick-item:hover { border-color: var(--primary); color: var(--primary-deep); background: var(--blue-soft); }
.pay-quick-item.on {
  border-color: transparent;
  background: var(--grad-main);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

/* 支付成功 */
.pay-success-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 16px 26px; }
.pay-success-check { width: 60px; height: 60px; color: var(--ok); }
.pay-success-title { font-size: 18px; font-weight: 700; color: var(--text-strong); }
.pay-success-sub { font-size: 13px; color: var(--text-4); }
.pay-success-btn {
  display: block; text-align: center;
  margin-top: 12px; padding: 13px 32px;
  border-radius: var(--r-pill);
  background: var(--grad-main); color: #fff;
  font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow-blue);
}
.wd-paycode { display: flex; align-items: center; gap: 8px; }
.wd-paycode-ico { width: 20px; height: 20px; }

/* =============================================================
   打手端工作台
   ============================================================= */
.work-bal {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border-radius: var(--r-l);
  background: var(--grad-modern);
  box-shadow: var(--shadow-raise);
  margin-bottom: 12px;
}
.work-bal-ico { width: 30px; height: 30px; flex-shrink: 0; }
.work-bal-label { font-size: 11px; color: rgba(255, 255, 255, .8); }
.work-bal-val { font-size: 22px; font-weight: 800; color: #fff; }
.work-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.work-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.earn-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.earn-kpi-item { background: #fff; border-radius: var(--r-m); padding: 12px 10px; text-align: center; box-shadow: var(--shadow-card); }
.earn-kpi-val { font-size: 18px; font-weight: 800; color: var(--price-num); }
.earn-kpi-label { font-size: 11px; color: var(--text-4); margin-top: 3px; }

.bst-order {
  background: #fff; border-radius: var(--r-m);
  box-shadow: var(--shadow-card);
  padding: 12px; margin-bottom: 10px;
}
.bst-order-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bst-order-no { font-size: 11px; color: var(--text-5); }
.bst-order-mid { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.bst-order-name { font-size: 14px; font-weight: 700; color: var(--text-strong); }
.bst-order-gain { font-size: 15px; font-weight: 800; color: var(--price-num); }
.bst-order-meta { font-size: 11px; color: var(--text-4); margin-top: 4px; }
.bst-order-bottom { display: flex; gap: 8px; margin-top: 10px; }
.bst-order-action {
  flex: 1; text-align: center;
  padding: 9px 0; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  background: var(--grad-modern); color: #fff;
  box-shadow: var(--shadow-blue);
}
.bst-order-list { display: flex; flex-direction: column; }

.lvl-bar { display: flex; align-items: center; gap: 8px; }
.lvl-track, .bar-track, .hbar-track { flex: 1; height: 8px; border-radius: 4px; background: var(--divider-soft); overflow: hidden; }
.lvl-fill, .bar-fill, .hbar-fill { height: 100%; border-radius: 4px; background: var(--grad-modern); }
.lvl-bar-label, .bar-label, .hbar-label { font-size: 11px; color: var(--text-4); }
.hbar-row { display: flex; align-items: center; gap: 8px; }
.hbar-num, .bar-val { font-size: 12px; font-weight: 700; color: var(--primary); }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bar-col .bar-fill { width: 100%; max-width: 22px; }

/* =============================================================
   表单 / 输入 / 按钮
   ============================================================= */
.form-group { margin-bottom: 14px; }
.label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: var(--r-m);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-5); }
.input:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(60, 156, 255, .12); }
.textarea { min-height: 88px; resize: vertical; }
.form-hint { font-size: 11px; color: var(--text-4); margin-top: 5px; }
.form-inline { display: flex; gap: 8px; align-items: center; }
.form-inline .input { flex: 1; }
.remember-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-box { flex-shrink: 0; height: 44px; border-radius: var(--r-m); overflow: hidden; }
.req { color: var(--red); }
.hint, .hint-inline { font-size: 11px; color: var(--text-4); }
.warn { color: #a15c00; }
.av-upload { display: flex; align-items: center; gap: 12px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #f0f2f5; }
.chk-all, .chk-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 10px; margin-top: 16px; }
.cell-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  font-size: 14px; font-weight: 600;
  border: none; border-radius: 10px;
  background: #f2f3f6; color: var(--text-2);
  cursor: pointer;
  transition: transform .15s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 7px 13px; font-size: 12px; border-radius: var(--r-s); }
.btn-primary { background: var(--grad-main); color: #fff; box-shadow: var(--shadow-blue); }
.btn-gold { background: var(--grad-modern); color: #fff; box-shadow: var(--shadow-blue); }
.btn-ok { background: rgba(31, 157, 99, .12); color: #1f9d63; }
.btn-danger { background: rgba(250, 85, 72, .12); color: var(--red); }
.btn-ghost-dark { background: transparent; color: var(--text-3); border: 1px solid var(--divider); }

.select {
  display: flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 12px;
  border-radius: 6px;
  font-size: 12px; color: #fff;
  background: var(--grad-main);
  box-shadow: var(--shadow-blue);
}
.sel-count { font-size: 12px; color: var(--text-4); }
.search-bar {
  display: flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 16px;
  border-radius: 22px;
  background: var(--glass-45);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.search-bar input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; font-size: 13px; color: var(--text); }
.search-mini {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--divider);
  font-size: 12.5px; color: var(--text-4);
}
.k { color: var(--text-4); font-size: 12px; }
.v { color: var(--text); font-size: 13px; font-weight: 600; }
.kv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kv-item { background: #fff; border-radius: var(--r-m); padding: 12px; box-shadow: var(--shadow-card); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-card { background: #fff; border-radius: var(--r-m); padding: 14px 12px; box-shadow: var(--shadow-card); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cur { font-size: 13px; color: var(--primary); font-weight: 600; }
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600;
  background: var(--blue-soft-2); color: var(--primary);
}
/* 状态胶囊配色（st-ok / st-warn / st-danger / st-info / st-muted） */
.badge.st-ok     { background: rgba(31, 157, 99, .12); color: #1f9d63; }
.badge.st-warn   { background: rgba(245, 166, 35, .16); color: #a15c00; }
.badge.st-danger { background: rgba(250, 85, 72, .12); color: var(--red); }
.badge.st-info   { background: var(--blue-soft-2); color: var(--primary); }
.badge.st-muted  { background: var(--divider-soft); color: var(--text-3); }

/* =============================================================
   后台表格
   ============================================================= */
.table-wrap {
  background: #fff; border-radius: var(--r-m);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  margin-bottom: 12px;
}
.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.table th {
  text-align: left; font-weight: 600; color: var(--text-2);
  background: #fafbfc;
  padding: 11px 12px;
  border-bottom: 1px solid var(--divider-soft);
  white-space: nowrap;
}
.table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--divider-soft);
  color: var(--text);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafbfd; }

/* =============================================================
   成为打手 / 入驻
   ============================================================= */
.become-perks { display: flex; flex-direction: column; gap: 10px; }
.become-perk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.become-divider { height: 1px; background: var(--divider); margin: 14px 0; }
.become-switch-title { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.become-switch-desc { font-size: 12px; color: var(--text-4); margin-top: 3px; }
.become-switch-note { font-size: 11px; color: var(--text-5); margin-top: 2px; }
.auth-sub .req { color: var(--red); }

/* =============================================================
   打手详情
   ============================================================= */
.pd-hero { display: flex; gap: 12px; align-items: center; padding: 14px 12px; }
.pd-avatar { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; flex-shrink: 0; border: 2px solid #fff; background: #f0f2f5; }
.pd-name { font-size: 17px; font-weight: 700; color: var(--text-strong); }
.pd-role-chip {
  display: inline-flex; padding: 2px 9px; border-radius: var(--r-pill);
  font-size: 11px; background: var(--grad-modern); color: #fff;
}
.pd-stats { display: flex; gap: 10px; margin: 0 12px 12px; }
.pd-stat {
  flex: 1; background: #fff; border-radius: var(--r-m);
  padding: 12px 8px; text-align: center; box-shadow: var(--shadow-card);
}
.pd-bio { font-size: 13px; color: var(--text-2); line-height: 1.6; padding: 0 12px 12px; }
.pd-actions {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(245, 246, 250, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pd-actions .btn { flex: 1; }

/* =============================================================
   工作台按钮
   ============================================================= */
.wbtn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  background: #fff; color: var(--text-2);
  border: 1px solid var(--divider);
  cursor: pointer;
}
.wbtn-primary { background: var(--grad-main); color: #fff; border-color: transparent; box-shadow: var(--shadow-blue); }

/* ---------- 小工具类 ---------- */
.value { color: var(--text); }
.tg { flex: 1; min-width: 0; }
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 16px; color: var(--text-4); font-size: 13px;
}

/* =============================================================
   空状态
   ============================================================= */
.clf-empty { display: flex; flex-direction: column; align-items: center; padding: 52px 0; }
.clf-empty-img {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--divider-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--text-5);
}
.clf-empty-img::before { content: "\2205"; }
.clf-empty-text { font-size: 13px; color: var(--text-4); margin-top: 12px; }

/* =============================================================
   确认弹窗
   ============================================================= */
.confirm-mask {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .5);
  animation: mask-in .2s ease;
}
@keyframes mask-in { from { opacity: 0; } to { opacity: 1; } }
.confirm-dialog {
  width: 76%; max-width: 300px;
  background: #fff;
  border-radius: var(--r-l);
  padding: 22px 18px 16px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
  animation: pop-in .22s ease;
}
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.confirm-icon { display: flex; justify-content: center; color: var(--primary); margin-bottom: 10px; }
.confirm-icon svg { width: 34px; height: 34px; }
.confirm-text { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 18px; }
.confirm-btns { display: flex; gap: 10px; }
.confirm-btn {
  flex: 1; padding: 11px 0;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.confirm-cancel { background: #f2f3f6; color: var(--text-3); }
.confirm-ok { background: var(--grad-main); color: #fff; box-shadow: var(--shadow-blue); }

/* =============================================================
   页面跳转加载动画
   ============================================================= */
.page-loading {
  position: fixed; inset: 0; z-index: 1300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 246, 250, .55);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.page-loading-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(60, 156, 255, .18);
  border-top-color: var(--primary);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================
   底部 Tab —— 第一套「悬浮胶囊毛玻璃」
   固定 · 距底 20px · 高 60px · 圆角 30px · blur 20px
   常态灰 #666 / 选中琥珀 #f9ae3d 加粗
   ============================================================= */
.tabbar-spacer { height: calc(100px + env(safe-area-inset-bottom)); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  padding: 0 20px calc(20px + env(safe-area-inset-bottom));
  background: transparent;
  pointer-events: none;
}
.tabbar-inner {
  pointer-events: auto;
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-around;
  height: 60px;
  background: var(--glass-tab);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}
.tab {
  position: relative;
  flex: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #666666;
  transition: color .18s;
}
.tab-icon {
  width: 24px; height: 24px;
  margin-bottom: 3px;
  object-fit: contain;
  filter: grayscale(1) opacity(.72);
  transition: filter .18s;
}
.tab-icon-svg { width: 24px; height: 24px; margin-bottom: 3px; }
.tab-text { font-size: 11px; line-height: 1; }
.tab.on { color: var(--tab-on); font-weight: 700; }
.tab.on .tab-icon { filter: none; }
.tab.on .tab-text { font-weight: 700; }
.tab-reddot {
  position: absolute; top: 8px; left: 50%; margin-left: 6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}

/* =============================================================
   响应式
   ============================================================= */
@media (min-width: 640px) {
  .goods-list { grid-template-columns: repeat(3, 1fr); }
  .wb-page, .wrap-pad { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 1000px) {
  .goods-list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 360px) {
  .cat-tab { padding: 0 10px; min-width: 52px; font-size: 11px; }
  .goods-title { font-size: 14px; }
  .mine-balance-num { font-size: 18px; }
}

/* =============================================================
   选人页 · 打手专区（对齐第一套 pages/player/index）
   ============================================================= */
.plz-search {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; margin: 0 0 12px;
  background: #fff; border-radius: var(--r-pill);
  border: 1px solid var(--divider-soft); box-shadow: var(--shadow-card);
}
.plz-search-ico { flex-shrink: 0; width: 18px; height: 18px; color: var(--text-4); }
.plz-search-ico svg { width: 18px; height: 18px; }
.plz-search-in {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: none; background: transparent;
  font-size: 14px; color: var(--text);
}
.plz-search-in::placeholder { color: var(--text-5); }
.plz-search-clear {
  flex-shrink: 0; width: 20px; height: 20px; line-height: 18px;
  text-align: center; border-radius: 50%;
  background: var(--divider-soft); color: var(--text-4); font-size: 14px;
}

.plz-tabs { display: flex; align-items: center; gap: 20px; padding: 0 6px 14px; }
.plz-tab { position: relative; font-size: 15px; color: var(--text-4); padding-bottom: 7px; }
.plz-tab.on { font-size: 16px; font-weight: 700; color: var(--text-strong); }
.plz-tab.on::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 28px; height: 4px; margin-left: -14px;
  border-radius: 3px; background: var(--grad-main);
}

.plz-card {
  display: flex; gap: 12px; padding: 12px; margin-bottom: 10px;
  background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow-card);
}
.plz-avatar {
  flex-shrink: 0; width: 100px; height: 100px; border-radius: var(--r-m);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--primary); font-size: 32px; font-weight: 700;
}
.plz-avatar img { width: 100%; height: 100%; object-fit: cover; }
.plz-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.plz-line1 { display: flex; align-items: center; gap: 8px; }
.plz-name {
  flex: 1; min-width: 0; font-size: 16px; font-weight: 700; color: var(--text-strong);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plz-status { flex-shrink: 0; display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ok); }
.plz-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.plz-status.off { color: var(--text-5); }
.plz-grade { align-self: flex-start; padding: 2px 8px; border-radius: var(--r-pill); font-size: 11px; color: #fff; }
.plz-bio {
  font-size: 12px; color: var(--text-4); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.plz-line2 {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; font-size: 12px; color: var(--text-4);
}
.plz-score { color: var(--warn); }
.plz-done { color: var(--text-3); }

/* 打手评级渐变标签（选人卡片与打手主页共用） */
.g-gold   { background: linear-gradient(270deg, #ffc93c 0%, #f59e0b 100%); }
.g-silver { background: linear-gradient(270deg, #a2c3ff 0%, #6780ff 100%); }
.g-info   { background: linear-gradient(270deg, #67d6ff 0%, #3e8fff 100%); }
.g-ghost  { background: linear-gradient(270deg, #c8cdd6 0%, #9aa3b0 100%); }
.grade-badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border-radius: var(--r-pill); font-size: 11px; color: #fff; vertical-align: middle;
}

/* =============================================================
   下单页 · 提交订单（对齐第一套 pagesA/index/order）
   ============================================================= */
.ck-page { display: block; padding: 12px 12px 0; }
.ck-card {
  padding: 14px; margin-bottom: 12px;
  background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow-card);
}
.ck-count { font-size: 12px; color: var(--text-4); margin-bottom: 10px; }
.ck-prod { display: flex; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--divider-soft); }
.ck-thumb {
  flex-shrink: 0; width: 80px; height: 80px; border-radius: var(--r-m);
  object-fit: cover; background: var(--blue-soft);
}
.ck-prod-info { flex: 1; min-width: 0; }
.ck-prod-name {
  font-size: 15px; font-weight: 700; color: var(--text-strong); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ck-prod-prow { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.ck-unit { font-size: 16px; font-weight: 700; color: var(--red); }
.ck-unit i { font-style: normal; font-size: 13px; margin-right: 1px; }
.ck-unitqty {
  font-size: 12px; color: var(--text-3);
  background: var(--divider-soft); padding: 2px 8px; border-radius: var(--r-s);
}
.ck-prod-desc {
  margin-top: 2px; font-size: 12px; color: var(--text-4); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ck-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13px; }
.ck-label { color: var(--text-4); }
.ck-value { color: var(--text-strong); font-weight: 500; }
.ck-row-total { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--divider-soft); }
.ck-row-total .ck-label { color: var(--text-strong); font-weight: 600; }
.ck-total { color: var(--red); font-weight: 700; font-size: 15px; }
.ck-total i { font-style: normal; font-size: 12px; margin-right: 1px; }
.ck-total b { font-size: 18px; }

.ck-form { padding: 4px 14px; }
.ck-field { padding: 12px 0; border-bottom: 1px solid var(--divider-soft); }
.ck-field-last { border-bottom: 0; }
.ck-field-flex { display: flex; align-items: center; justify-content: space-between; }
.ck-field-flex .ck-flabel { margin-bottom: 0; }
.ck-flabel { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-strong); }
.ck-input {
  width: 100%; height: 42px; padding: 0 12px;
  background: var(--bg); border: 1px solid var(--divider-soft); border-radius: var(--r-m);
  font-size: 14px; color: var(--text); outline: none;
}
.ck-input::placeholder { color: var(--text-5); }
.ck-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.ck-opt {
  padding: 8px 18px; font-size: 13px; color: var(--text-4);
  background: var(--bg); border: 1px solid var(--divider-soft); border-radius: var(--r-m);
  transition: all .2s;
}
.ck-opt.on {
  background: var(--grad-modern); color: #fff;
  border-color: transparent; box-shadow: var(--shadow-blue);
}
.ck-qtybox { display: flex; align-items: center; gap: 14px; }
.ck-qbtn {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--divider-soft); border-radius: var(--r-m);
  font-size: 17px; color: var(--text-2);
}
.ck-qnum { min-width: 24px; text-align: center; font-size: 15px; font-weight: 600; }
.ck-notice {
  padding: 12px 14px; margin-bottom: 12px;
  background: var(--blue-soft); border: 1px solid var(--blue-soft-2); border-radius: var(--r-m);
  font-size: 12px; color: var(--text-3); line-height: 1.8;
}
.ck-page-spacer { height: 74px; }
.ck-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--divider-soft); box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
}
.ck-foot-left { display: flex; align-items: baseline; gap: 4px; }
.ck-foot-label { font-size: 14px; color: var(--text-2); }
.ck-submit {
  flex: 0 0 auto; min-width: 150px; height: 44px; padding: 0 32px;
  border: 0; border-radius: var(--r-pill);
  background: var(--grad-modern); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 1px; box-shadow: var(--shadow-blue);
}

/* 选择打手弹窗 */
.ck-mask {
  position: fixed; inset: 0; z-index: 40; display: none;
  align-items: center; justify-content: center; padding: 0 24px;
  background: rgba(0, 0, 0, .45);
}
.ck-mask.on { display: flex; }
.ck-pop { width: 100%; max-width: 340px; padding: 18px 16px 14px; background: #fff; border-radius: var(--r-l); }
.ck-pop-title { margin-bottom: 12px; text-align: center; font-size: 16px; font-weight: 700; color: var(--text-strong); }
.ck-pop-list { max-height: 280px; overflow-y: auto; }
.ck-pop-empty { padding: 28px 0; text-align: center; font-size: 13px; color: var(--text-4); }
.ck-thug { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: var(--r-m); }
.ck-thug.on { background: var(--blue-soft); }
.ck-radio { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--text-5); }
.ck-thug.on .ck-radio { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.ck-thug-av {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--primary); font-weight: 700;
}
.ck-thug-av img { width: 100%; height: 100%; object-fit: cover; }
.ck-thug-name { font-size: 14px; color: var(--text-strong); }
.ck-pop-btn {
  margin-top: 14px; height: 42px; line-height: 42px; text-align: center;
  border-radius: var(--r-pill); background: var(--grad-modern); color: #fff;
  font-size: 15px; font-weight: 600; box-shadow: var(--shadow-blue);
}

