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

:root {
  /* —— 品牌色 —— */
  --primary: #3B8FF6;              /* 品牌主蓝（bg-main 起点） */
  --primary-2: #5B6FFF;            /* 品牌主蓝（bg-main 终点） */
  --primary-deep: #2563eb;         /* 现代蓝渐变终点 */
  --grad-main: linear-gradient(135deg, #3B8FF6, #5B6FFF);
  --grad-modern: linear-gradient(135deg, #3b82f6, #2563eb);
  --grad-warm: linear-gradient(135deg, #f97316, #ef4444);

  /* —— 文字 —— */
  --text: #1A1A2E;
  --text-strong: #090b08;
  --text-2: #333333;
  --text-3: #666666;
  --text-4: #999999;
  --text-5: #A0A4B8;
  --text-blue: #3B8FF6;
  --text-blue-deep: #1e40af;

  /* —— 价格 —— */
  --price-sym: #f50b00;            /* ￥ 符号 */
  --price-num: #2563eb;            /* 价格数字 */
  --red: #FA5548;

  /* —— 容器 —— */
  --bg: #F5F6FA;                   /* page 底色 */
  --card: #ffffff;
  --divider: rgba(0, 0, 0, .08);
  --divider-soft: #F0F1F5;
  --blue-soft: rgba(59, 130, 246, .06);
  --blue-soft-2: rgba(59, 130, 246, .08);

  /* —— 毛玻璃三种 —— */
  --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(37, 99, 235, .3);
  --tab-on: #F5A623;               /* 底部 Tab 选中琥珀 */
}

/* ---------- 基础 ---------- */
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(59, 130, 246, .18);
}
.flash-error { background: rgba(250, 85, 72, .08); color: var(--red); border-color: rgba(250, 85, 72, .2); }
.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;
}

/* =============================================================
   首页轮播
   ============================================================= */
.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(59, 130, 246, .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(37, 99, 235, .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-chip / .st-chip 承担 */
.clf-filter, .st-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 2px 2px 10px;
}
.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(59, 130, 246, .1);
  transition: all .25s ease;
}
.clf-chip.on, .sort-pill.on {
  background: var(--grad-modern); color: #fff; font-weight: 700;
  border-color: transparent; box-shadow: 0 2px 7px rgba(37, 99, 235, .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(59, 130, 246, .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-s); object-fit: cover; flex-shrink: 0; background: #f0f2f5; }
.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); }
/* 分类页价格筛选表单（与商品卡价格 .classify-card-price 无关） */
.clf-price { display: flex; align-items: center; gap: 6px; }
.clf-price-in {
  width: 78px; height: 32px; padding: 4px 10px;
  border-radius: var(--r-s); border: 1px solid var(--divider);
  background: #fff; font-size: 12px; font-weight: 400; color: var(--text);
}

/* =============================================================
   陪玩大厅 / 打手卡 / 排行榜
   ============================================================= */
.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; }
.mine-role {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 4px;
  height: 34px; padding: 0 12px;
  border-radius: 25px;
  background: var(--glass-45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
  font-size: 12px; color: #000; font-weight: 500;
}
.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-amount-card {
  background: var(--grad-modern);
  border-radius: var(--r-l);
  padding: 26px 16px;
  margin: 0 12px 12px;
  text-align: center;
  box-shadow: var(--shadow-raise);
}
.pay-amount-label { font-size: 12px; color: rgba(255, 255, 255, .8); }
.pay-amount-val { font-size: 32px; font-weight: 800; color: #fff; margin-top: 6px; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px;
  background: #fff; border-radius: var(--r-m);
  box-shadow: var(--shadow-card);
}
.pay-method-ico { width: 26px; height: 26px; flex-shrink: 0; }
.pay-method-main { flex: 1; min-width: 0; }
.pay-method-title { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.pay-method-sub { font-size: 11px; color: var(--text-4); margin-top: 2px; }
.pay-method-go { font-size: 12px; color: var(--primary); flex-shrink: 0; }
.pay-method-primary { background: var(--grad-modern); color: #fff; }
.pay-method-primary .pay-method-title, .pay-method-primary .pay-method-go { color: #fff; }
.pay-method-primary .pay-method-sub { color: rgba(255, 255, 255, .8); }
.pay-success-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; }
.pay-success-check { width: 60px; height: 60px; color: #1f9d63; }
.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: 10px;
  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(59, 143, 246, .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);
}

/* =============================================================
   后台表格
   ============================================================= */
.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(59, 143, 246, .18);
  border-top-color: var(--primary);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================
   底部 Tab —— 第一套「悬浮胶囊毛玻璃」
   固定 · 距底 20px · 高 60px · 圆角 30px · blur 20px
   常态灰 #666 / 选中琥珀 #F5A623 加粗
   ============================================================= */
.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; }
}

/* =============================================================
   首页快捷功能区（公告栏下方 4 图标入口）
   ============================================================= */
.home-quick {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin: 12px 14px 0;
}
.home-quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 4px 10px;
  background: var(--card); border-radius: var(--r-l);
  box-shadow: var(--shadow-card);
}
.home-quick-ico {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 13px;
  background: var(--blue-soft-2); color: var(--primary);
}
.home-quick-ico svg { width: 23px; height: 23px; display: block; }
.home-quick-txt { font-size: 12px; color: var(--text-2); line-height: 1; }

/* =============================================================
   公告弹窗（后台可配多条，需手动点「确认」关闭）
   ============================================================= */
.ann-pop-mask {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 15, 30, .55);
  padding: 32px;
}
.ann-pop {
  position: relative; width: 100%; max-width: 340px;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}
.ann-pop-swiper { display: flex; transition: transform .28s ease; }
.ann-pop-slide { flex: 0 0 100%; min-width: 100%; display: flex; flex-direction: column; }
.ann-pop-img { width: 100%; max-height: 240px; object-fit: cover; display: block; background: var(--blue-soft); }
.ann-pop-body { padding: 18px 18px 2px; }
.ann-pop-title { font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.4; }
.ann-pop-desc { margin-top: 8px; font-size: 13px; color: var(--text-3); line-height: 1.6; word-break: break-all; }
.ann-pop-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 12px 0 0;
}
.ann-pop-dots i { width: 6px; height: 6px; border-radius: 3px; background: #D8DCE6; transition: all .2s; }
.ann-pop-dots i.on { width: 16px; background: var(--primary); }
.ann-pop-btn {
  display: block; width: calc(100% - 36px); margin: 14px 18px 18px;
  height: 44px; border: 0; border-radius: 22px;
  background: var(--grad-modern); color: #fff;
  font-size: 16px; font-weight: 700;
}
.ann-pop-btn:active { opacity: .85; }
.ann-pop-close {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 15px;
  background: rgba(0, 0, 0, .35); color: #fff;
}
.ann-pop-close svg { width: 16px; height: 16px; display: block; }

/* =============================================================
   打手端 / 商家端：蓝色渐变顶栏 + 蓝色底部导航
   ============================================================= */
.app-hero-topbar {
  background: var(--grad-modern);
  color: #fff;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
}
.app-hero-topbar-in {
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
}
.app-hero-brand {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 17px; font-weight: 800;
}
.app-hero-brand svg { width: 22px; height: 22px; display: block; }
.app-hero-sub { flex: 1; font-size: 12px; color: rgba(255, 255, 255, .75); }
.app-hero-exit { font-size: 13px; color: rgba(255, 255, 255, .9); }
.tabbar-blue .tab { color: #8A93A6; }
.tabbar-blue .tab.on { color: var(--primary); }
.tab-svg { width: 24px; height: 24px; margin-bottom: 3px; display: block; }
.tabbar-blue .tab.on .tab-svg { color: var(--primary); }

/* =============================================================
   商品排行榜页
   ============================================================= */
.rank-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--divider-soft);
  background: var(--card);
}
.rank-row:last-child { border-bottom: 0; }
.rank-no {
  flex: 0 0 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--text-4);
  background: var(--bg);
}
.rank-no-1 { color: #fff; background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.rank-no-2 { color: #fff; background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.rank-no-3 { color: #fff; background: linear-gradient(135deg, #fdba74, #ea8c55); }
.rank-img { flex: 0 0 52px; height: 52px; border-radius: var(--r-m); overflow: hidden; background: var(--blue-soft); }
.rank-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rank-title { font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-sub { font-size: 11px; color: var(--text-4); }
.rank-meta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rank-cnt { font-size: 11px; color: var(--primary); font-weight: 700; }
.rank-sum { font-size: 12px; font-weight: 800; color: var(--price-num); }

/* =============================================================
   「切换身份」入口按钮 + 底部弹层（免申请即时切换）
   ============================================================= */
.mine-switch-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .22); color: #fff;
  font-size: 12px; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.mine-switch-btn svg { width: 13px; height: 13px; display: block; }
.mine-switch-btn:active { opacity: .8; }

.role-sheet-mask {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 15, 30, .5);
}
.role-sheet {
  width: 100%; max-width: 640px;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
  animation: roleSheetUp .22s ease;
}
@keyframes roleSheetUp { from { transform: translateY(40%); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
.role-sheet-title { text-align: center; font-size: 16px; font-weight: 800; color: var(--text); }
.role-sheet-sub { text-align: center; font-size: 12px; color: var(--text-4); margin-top: 4px; }
.role-sheet-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.role-sheet-item {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid var(--divider-soft); border-radius: var(--r-l);
  background: var(--bg); text-align: left;
}
.role-sheet-item.on { border-color: rgba(59, 130, 246, .35); background: var(--blue-soft-2); }
.role-sheet-ico {
  flex: 0 0 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--primary);
  box-shadow: var(--shadow-card);
}
.role-sheet-ico svg { width: 22px; height: 22px; display: block; }
.role-sheet-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.role-sheet-info b { font-size: 14px; font-weight: 700; color: var(--text); }
.role-sheet-info i { font-style: normal; font-size: 11px; color: var(--text-4); }
.role-sheet-cur {
  flex: 0 0 auto; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; color: var(--primary); background: #fff;
}
.role-sheet-go {
  flex: 0 0 auto; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; color: #fff; background: var(--grad-modern);
}
.role-sheet-cancel {
  width: 100%; margin-top: 12px; height: 42px;
  border: 0; border-radius: 21px; background: var(--bg);
  font-size: 14px; color: var(--text-3); font-weight: 600;
}
.role-sheet-act {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border: 1px solid rgba(59, 130, 246, .35); border-radius: var(--r-l);
  background: var(--blue-soft);
}
.role-sheet-actrow { display: flex; gap: 8px; align-items: center; }
.role-sheet-actrow .input { flex: 1; height: 38px; font-size: 13px; }
.role-sheet-actrow .btn { flex: 0 0 auto; }

/* =============================================================
   商家端商品列表行
   ============================================================= */
.mch-prod-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--divider-soft);
}
.mch-prod-ops { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.mch-prod-ops .btn { padding: 4px 10px; font-size: 12px; }
@media (max-width: 480px) {
  .mch-prod-row { flex-wrap: wrap; }
  .mch-prod-ops { flex-direction: row; width: 100%; justify-content: flex-end; }
}

