/* =============================================
   电竞服务平台 - 全局样式（浅色·简洁扁平）
   主调黑白色系，少圆角、细边框、轻阴影、适量动态
   ============================================= */

:root {
  --bg: #f6f7f9;
  --bg-deep: #eceef0;
  --card: #ffffff;
  --line: #edeef1;
  --line-strong: #d9dce1;
  --text: #17181a;
  --text-2: #555a61;
  --text-3: #9aa0a6;
  --primary: #17181a;        /* 深黑：文字/头像等深色元素 */
  --primary-2: #2e3238;
  --brand: #f9ae3d;          /* k77 主题黄：品牌强调 */
  --brand-2: #e08a00;        /* 深黄 hover */
  --brand-soft: #fff6e5;     /* 浅黄底 */
  --danger: #c8403f;         /* 功能性警示（删除/错误），克制使用 */
  --ok: #1f7a4d;
  --info: #2f6fb0;
  --radius: 12px;            /* 大圆角卡片（k77 风格） */
  --radius-s: 8px;
  --shadow: 0 1px 3px rgba(20,22,26,.05);
  --shadow-hover: 0 6px 18px rgba(20,22,26,.09);
}

/* 界面切换时保持右侧滚动条槽位，避免左右跳动 */
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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, 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; }

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

/* 页面整体淡入（轻动态，不过度） */
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wrap { animation: fadeUp .28s ease-out; }

/* ---------- 首页顶栏（浅色） ---------- */
.home-topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
}
.home-topbar-inner { display: flex; align-items: center; gap: 10px; }
.home-logo { flex-shrink: 0; display: flex; }
.home-logo-badge {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.home-logo-badge svg { width: 28px; height: 28px; }
.home-logo-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.home-search {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 7px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 12px;
  transition: border-color .18s, box-shadow .18s;
}
.home-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,24,29,.06); }
.hs-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-3); }
.hs-ph { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-msg { position: relative; flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.home-msg .hs-icon { width: 22px; height: 22px; }
.home-msg-dot {
  position: absolute; top: 4px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  border: 2px solid var(--bg);
}

/* ---------- 普通页顶栏（浅色） ---------- */
.sub-topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.sub-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 46px; padding: 0 12px;
}
.sub-back { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.sub-back svg { width: 22px; height: 22px; }
.sub-title { font-size: 16px; font-weight: 600; color: var(--text); }
.sub-right { width: 30px; }

/* ---------- 工作台顶栏（管理后台 / 打手端，独立于用户界） ---------- */
.wb-topbar {
  position: sticky; top: 0; z-index: 30;
  background: #111214; color: #fff;
  border-bottom: 1px solid #000;
}
.wb-topbar-in {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  height: 50px; padding: 0 14px;
}
.wb-brand { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; letter-spacing: .3px; flex-shrink: 0; }
.wb-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.wb-nav::-webkit-scrollbar { display: none; }
.wb-nav-a {
  padding: 5px 12px; border-radius: 3px;
  font-size: 13px; color: #b9bdc4; white-space: nowrap; transition: background .15s, color .15s;
}
.wb-nav-a:hover { color: #fff; background: rgba(255,255,255,.08); }
.wb-nav-a.on { color: #fff; font-weight: 600; background: rgba(255,255,255,.14); }
.wb-nav-a-brief { font-size: 12.5px; color: #8b9198; white-space: nowrap; }
.wb-exit { font-size: 12.5px; color: #9aa0a6; white-space: nowrap; flex-shrink: 0; }
.wb-exit:hover { color: #fff; }
.wb-search { position: relative; flex-shrink: 0; display: flex; align-items: center; }
.wb-search-ico { position: absolute; left: 9px; width: 14px; height: 14px; color: #8b9198; pointer-events: none; }
.wb-search-in { width: 150px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 12.5px; padding: 6px 10px 6px 28px; border-radius: 4px; outline: none; transition: all .2s; }
.wb-search-in::placeholder { color: #8b9198; }
.wb-search-in:focus { border-color: #fff; background: rgba(255,255,255,.12); width: 190px; }
.wb-topbar-booster { background: #16171a; }
@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; }
}
/* 管理/打手内容区：给定内边距，避免贴顶 */
.wb-page { padding: 16px 14px 40px; }
.wb-page .card, .wb-page .stat-grid { }

/* ---------- 公告条（单行） ---------- */
.notice-bar {
  margin: 12px 12px 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  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(--primary); border-radius: 4px; padding: 2px 7px; }
.notice-bar-scroll { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.notice-bar-txt { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 公告规则横幅（旧大卡片，兼容保留） ---------- */
.notice-banner {
  margin: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.notice-title {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
}
.notice-title-bar { width: 3px; height: 15px; border-radius: 2px; background: var(--primary); }
.notice-title-text { font-size: 14px; font-weight: 600; color: var(--text); }
.notice-title-tag {
  margin-left: auto; font-size: 12px; color: var(--danger);
  display: flex; align-items: center; gap: 3px; font-weight: 500;
}
.notice-body { padding: 2px 14px 12px; }
.notice-rule {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; color: var(--text-2); line-height: 26px;
}
.notice-rule .nr { font-weight: 700; color: var(--danger); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.notice-rule .nv { }

/* ---------- 首页轮播图（k77 swiper 风格） ---------- */
.home-banner { padding: 10px 12px 2px; }
.home-banner-inner {
  position: relative; overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.home-banner-track {
  display: flex;
  transition: transform .45s ease;
}
.home-banner-slide {
  flex: 0 0 100%; width: 100%;
  position: relative;
  padding-bottom: 38%;
  background: #eceef0;
}
.home-banner-slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.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: 999px;
  background: rgba(255,255,255,.55);
  transition: all .25s ease;
}
.home-banner-dots i.on { width: 14px; background: #fff; }

/* ---------- 游戏分类（文字标签横滑） ---------- */
.cat-tabs { padding: 6px 8px 2px; }
.cat-scroll { white-space: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-tab {
  display: inline-flex; align-items: center;
  padding: 7px 16px; margin-right: 8px; flex-shrink: 0;
  font-size: 14px; color: var(--text-2);
  border: none;
  border-radius: 999px;
  background: var(--bg-deep);
  transition: all .16s ease;
}
.cat-tab.on {
  background: var(--primary); border: none;
  color: #fff; font-weight: 600;
}
.cat-name {  }

/* ---------- 筛选胶囊 ---------- */
.filter-bar { padding: 10px 12px 4px; }
.filter-scroll { display: flex; gap: 8px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-s);
  font-size: 12.5px;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  transition: all .16s ease;
}
.filter-pill.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* ---------- 商品列表（2列浅色卡片） ---------- */
.goods-section { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; }
.goods-section-title-text { font-size: 16px; font-weight: 600; color: var(--text); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-section-count { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.goods-section-right { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; }
.sort-pill {
  flex-shrink: 0; padding: 5px 13px; border-radius: 999px; font-size: 12px;
  background: var(--bg-deep); border: none; color: var(--text-2);
  transition: all .16s ease;
}
.sort-pill.on { background: var(--primary); border: none; color: #fff; font-weight: 600; }
.goods-list {
  padding: 0 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-bottom: 28px;
}
.goods-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
.goods-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.goods-card:active { transform: scale(.985); }
.goods-img-wrap { position: relative; width: 100%; padding-bottom: 80%; background: #f1f2f4; overflow: hidden; }
.goods-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.goods-badge {
  position: absolute; left: 8px; top: 8px;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(20,22,26,.72); color: #fff;
  font-size: 11px; font-weight: 500; letter-spacing: .3px;
}
.goods-info { padding: 11px 11px 12px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.goods-title {
  font-size: 14px; font-weight: 600; color: var(--text); line-height: 19px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.goods-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.goods-price { color: var(--text); font-weight: 700; font-size: 17px; line-height: 19px; font-variant-numeric: tabular-nums; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.goods-price-unit { font-size: 12px; color: var(--text-2); }
.goods-tag {
  padding: 4px 12px; border-radius: var(--radius-s);
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 600;
}

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

/* ---------- 底部 Tab（简约黑白） ---------- */
.tabbar-spacer { height: calc(60px + env(safe-area-inset-bottom) + 6px); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid var(--line);
}
.tabbar-inner { height: 58px; display: flex; align-items: stretch; }
.tab {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3);
  transition: color .16s ease;
}
.tab-icon { width: 24px; height: 24px; opacity: .55; filter: grayscale(1); transition: all .16s ease; }
.tab-icon-svg { width: 24px; height: 24px; color: inherit; opacity: .6; transition: opacity .16s ease; }
.tab-text { color: inherit; font-size: 11px; line-height: 1; }
.tab.on { color: var(--accent); font-weight: 600; }
.tab.on .tab-icon { opacity: 1; filter: none; }
.tab.on .tab-icon-svg { opacity: 1; }
.tab-reddot {
  position: absolute; top: 8px; left: 50%; margin-left: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  border: 2px solid #fff;
}
/* 中间“选人”与其它 Tab 一致，使用普通图标，不再突出 */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius-s);
  border: 1px solid transparent; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line-strong);
  transition: all .16s ease;
}
.btn:hover { box-shadow: var(--shadow-hover); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-gold { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-ghost-dark { border: 1px solid var(--line-strong); color: var(--text-2); background: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 提示 ---------- */
.flash { padding: 11px 14px; border-radius: var(--radius-s); margin: 12px; font-size: 13px; }
.flash-success { background: #eefaf4; color: #17885b; border: 1px solid #cdeee0; }
.flash-error { background: #fdf1f1; color: #cf3f44; border: 1px solid #f6d6d7; }
.flash-info { background: #f6fafd; color: #2f7fe1; border: 1px solid #d7e8f9; }
.flash-warn { background: #fff8ec; color: #c07a12; border: 1px solid #f6e3c2; }

/* ---------- 图形验证码 ---------- */
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row .input { flex: 1; min-width: 0; }
.captcha-box { flex-shrink: 0; width: 112px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: #fff; cursor: pointer; user-select: none; line-height: 0; }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.section { margin-bottom: 16px; margin-top: 16px; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  font-size: 14px; background: #fff; color: var(--text); outline: none; transition: border-color .18s, box-shadow .18s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,24,29,.06); }
.input::placeholder, .textarea::placeholder { color: #aeb4bb; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa0a6' stroke-width='2' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.textarea { min-height: 90px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---------- 页面头部 ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 12px; gap: 12px; flex-wrap: wrap; padding: 0 12px; }
.page-title { font-size: 19px; font-weight: 700; color: var(--text); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 内容区 ---------- */
.plain-content { padding: 12px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 10px; }
.kv-item { padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); }
.kv-item .k { font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.kv-item .v { font-weight: 600; word-break: break-all; color: var(--text); }
.order-no { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--text-3); font-size: 13px; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 进度时间线 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line-strong); }
.tl-item { position: relative; margin-bottom: 14px; }
.tl-item::before {
  content: ""; position: absolute; left: -23px; top: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ok); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.tl-item .tl-time { font-size: 12px; color: var(--text-3); }
.tl-item .tl-text { margin-top: 2px; color: var(--text); }
.tl-item .tl-img { margin-top: 8px; }
.tl-item .tl-img img { max-width: 220px; max-height: 220px; border-radius: var(--radius-s); border: 1px solid var(--line); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; color: var(--text); }
.table th { background: #fafafb; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.table tr:hover td { background: #fafafb; }
.table .num { font-variant-numeric: tabular-nums; }

/* ---------- 状态徽标 ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-ok { background: #e6f6ee; color: #17885b; }
.st-warn { background: #fdf3e0; color: #b9831d; }
.st-info { background: #e8f1fc; color: #266fc9; }
.st-danger { background: #fbecec; color: #cf3f44; }
.st-muted { background: #eef0f2; color: var(--text-2); }

/* ---------- 统计卡片 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 12px; }
.stat-card { padding: 16px; }
.stat-card .label { font-size: 12px; color: var(--text-3); }
.stat-card .value { font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; color: var(--text); }

/* ---------- 空状态 / 页脚 ---------- */
.empty { text-align: center; padding: 40px 16px; color: var(--text-3); }
.footer { margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; text-align: center; }

/* ---------- 登录/注册页（浅色） ---------- */
body.auth-page {
  background: var(--bg);
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 16px; box-sizing: border-box;
}
body.auth-page .wrap { max-width: 420px; width: 100%; margin: 0; padding: 0; }
body.auth-page .auth-wrap { margin: 0; width: 100%; }
body.auth-page .card {
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(16,18,26,.10);
}
body.auth-page .tabbar, body.auth-page .sub-topbar { display: none; }
body.auth-page .flash { margin: 12px; }
.auth-brand-logo {
  width: 64px; height: 64px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.auth-brand-logo svg { width: 44px; height: 44px; }
.auth-title { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.auth-sub { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 20px; }
.auth-foot { text-align: center; margin-top: 14px; color: var(--text-2); font-size: 13px; }
.auth-foot a { color: var(--primary); font-weight: 600; }

/* ---------- 分类页（左栏 + 右列表） ---------- */
.classify-layout { display: flex; height: calc(100vh - 46px - 58px - env(safe-area-inset-bottom)); overflow: hidden; }
.classify-side { width: 84px; overflow-y: auto; overflow-x: hidden; background: #fbfbfc; border-right: 1px solid var(--line); flex-shrink: 0; scrollbar-width: none; }
.classify-side::-webkit-scrollbar { display: none; }
.classify-side-item {
  height: 54px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-2); position: relative; transition: color .15s;
}
.classify-side-item.on { background: #fff; color: var(--text); font-weight: 600; }
.classify-side-item.on::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--primary); }
.classify-main { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; background: var(--bg); padding: 10px 10px 130px; scrollbar-width: none; }
.classify-main::-webkit-scrollbar { display: none; }
.classify-cat-title { font-size: 14px; font-weight: 600; padding: 6px 0 10px; color: var(--text); }
.classify-goods-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.classify-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.classify-card-img { width: 100%; padding-bottom: 72%; position: relative; background: #f1f2f4; }
.classify-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.classify-card-body { padding: 8px 10px; }
.classify-card-title { font-size: 13px; font-weight: 600; line-height: 1.3; min-height: 17px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.classify-card-title2 { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.classify-card-price { color: var(--brand); font-weight: 700; font-size: 15px; margin-top: 6px; }

/* ---------- 我的页（k77 浅色卡片风） ---------- */
.mine-page { background: var(--bg); min-height: calc(100vh - 58px - env(safe-area-inset-bottom)); padding-bottom: 96px; }
.mine-hero { padding: 12px 12px 0; }
.mine-profile {
  display: flex; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
  padding: 16px 14px; margin-bottom: 10px;
}
.mine-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; flex-shrink: 0; overflow: hidden;
  border: 2px solid var(--accent-line);
}
.mine-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mine-info { flex: 1; min-width: 0; margin-left: 14px; }
.mine-name { font-size: 17px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.mine-role { padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; }
.mine-id { margin-top: 8px; font-size: 13px; color: var(--text-3); }
.mine-balance {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.mine-balance-left { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.mine-balance-label { font-size: 12px; color: var(--text-3); }
.mine-balance-num {
  font-size: 24px; font-weight: 800; color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.mine-balance-unit { font-size: 12px; color: var(--accent); font-weight: 600; }
.mine-content { padding: 0 12px; }
.mine-card {
  margin-bottom: 12px; padding: 14px 12px;
  border-radius: 16px; background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mine-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.mine-card-title {
  font-size: 14px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 11px; border-radius: 8px;
  display: inline-flex; align-items: center;
}
.mine-card-link { display: flex; align-items: center; gap: 2px; color: var(--text-3); font-size: 12px; }
.mine-order-grid { display: flex; margin-top: 14px; }
.mine-order-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.mine-order-dot { position: absolute; top: -8px; right: 50%; margin-right: -18px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; line-height: 1; border: 2px solid #fff; }
.mine-order-icon {
  font-size: 20px; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 12px;
}
.mine-order-icon svg { width: 22px; height: 22px; }
.mine-order-label { color: var(--text-2); font-size: 12px; white-space: nowrap; }
.mine-order-label em { font-style: normal; font-weight: 700; color: var(--accent); margin-left: 2px; }
.mine-menu-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; line-height: 1; padding: 0 4px; margin-left: 4px; border-radius: 8px; background: var(--danger); color: #fff; font-style: normal; font-size: 10px; font-weight: 600; vertical-align: 2px; }
.mine-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 18px 8px; margin-top: 14px; }
.mine-menu-item { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-2); min-width: 0; text-align: center; }
.mine-menu-label { line-height: 1.3; overflow-wrap: anywhere; word-break: break-word; font-size: 12px; }
.mine-menu-icon {
  font-size: 20px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 14px;
}
.mine-menu-icon svg { width: 22px; height: 22px; }
.mine-actions { padding: 0 12px; }
.mine-logout { width: 100%; padding: 12px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--text-2); font-size: 14px; font-weight: 500; }

/* ---------- 聊天/消息 ---------- */
.chat-item { display: flex; gap: 12px; background: #fff; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.chat-avatar { width: 46px; height: 46px; border-radius: 12px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.chat-main { flex: 1; min-width: 0; }
.chat-name-line { display: flex; justify-content: space-between; align-items: center; }
.chat-name { font-size: 15px; font-weight: 600; color: var(--text); }
.chat-time { font-size: 11px; color: var(--text-3); }
.chat-preview { font-size: 13px; color: var(--text-3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 订单内聊天气泡 */
.chat-bubble { display: inline-block; padding: 8px 12px; border-radius: var(--radius); font-size: 14px; line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
.chat-reddot { position: relative; }
.chat-reddot::after { content: attr(data-n); position: absolute; top: -6px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; line-height: 1; border: 2px solid #fff; }

/* ---------- 秒杀 / 折扣 ---------- */
.goods-badge-sale { left: auto; right: 8px; background: var(--danger); color: #fff; }
.goods-price-gulp {
  color: var(--text-3); font-weight: 600; font-size: 13px; line-height: 19px;
  text-decoration: line-through; margin-right: 6px;
  font-variant-numeric: tabular-nums;
}
.goods-price-gulp .goods-price-unit { font-size: 10px; }

/* ---------- 评价 / 星级 ---------- */
.stars { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; }
.star { width: 16px; height: 16px; color: var(--line-strong); flex: none; }
.star.on { color: #f5a623; fill: #f5a623; }
.stars-sm .star { width: 13px; height: 13px; }
.stars-num { margin-left: 6px; font-size: 12px; color: var(--text-2); }
.rating-star .star { color: var(--line-strong); }
.rating-star.sel .star { color: #f5a623; fill: #f5a623; }

/* ---------- 站内通知（消息页） ---------- */
.notice-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #fff; margin-bottom: 8px; }
.notice-head-title { font-size: 14px; font-weight: 700; color: var(--text); }
.notify-item { background: #fff; }
.notify-item.unread { border-left: 3px solid var(--primary); }
.notify-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-top: 5px; }
.notice-tag { flex-shrink: 0; display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.6; height: fit-content; }
.notify-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 成为打手（入驻页） ---------- */
.become-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 20px; }
.become-perk { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; color: var(--text-2); background: #f6f7f9; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; line-height: 1.35; }
.become-perk svg { width: 20px; height: 20px; color: var(--primary); flex: 0 0 20px; }
.become-switch-note { background: #f6f7f9; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 4px; }
.become-switch-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.become-switch-desc { font-size: 12px; line-height: 1.6; color: var(--text-2); margin-bottom: 12px; }
.become-divider { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); margin: 16px 0 12px; }
.become-divider::before, .become-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 360px) {
  .become-perks { grid-template-columns: 1fr; }
}

/* ---------- 响应式（移动优先） ---------- */
@media (min-width: 640px) {
  .goods-list { grid-template-columns: repeat(4,1fr); }
  .stat-grid { grid-template-columns: repeat(3,1fr); }
  .kv-grid { grid-template-columns: repeat(3,1fr); }
  .plain-content { max-width: 760px; margin: 0 auto; }
  .tabbar { max-width: 640px; left: 50%; transform: translateX(-50%); }
  .home-topbar, .goods-list, .goods-section, .filter-bar, .cat-tabs, .notice-banner { max-width: 640px; margin-left: auto; margin-right: auto; }
  .wrap { max-width: 1080px; }
  /* 顾客端内容区在更大的屏幕仍保持紧凑阅读宽度 */
  .wrap:not(.wb-page) { max-width: 640px; }
}
@media (min-width: 1000px) {
  .stat-grid { grid-template-columns: repeat(5,1fr); }
}

/* =============================================
   品牌点缀（克制：价格/关键 CTA/星级/角标用品牌蓝，
   其余保持黑白，不做花哨渐变）
   ============================================= */
:root {
  --accent: #f9ae3d;         /* k77 主题黄：价格/下单/选中态/标签 */
  --accent-soft: rgba(249,174,61,.12);
  --accent-line: rgba(249,174,61,.45);
}
.wb-brand { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wb-brand-ico { width: 16px; height: 16px; flex-shrink: 0; }

/* 价格与核心 CTA 用主题黄点缀（k77 风格） */
.goods-price, .goods-tag, .price, .classify-card-price { color: var(--accent); }
.goods-tag { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 6px; padding: 4px 11px; }
.goods-tag.sold-out { background: var(--line-strong); border-color: var(--line-strong); color: var(--text-3); }
.goods-foot-limit { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* 评分星：点亮部分用主题黄 */
.stars .star.on { color: var(--accent); }
.stars-num { color: var(--accent); }

/* 头部分类/筛选胶囊选中态：黄底白字 */
.cat-tab.on, .sort-pill.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 选人/打手卡：头像、标签、关注按钮 */
.player-card { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.avatar { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--bg-deep); border: 1px solid var(--line); color: var(--text-2); display: flex; align-items: center; justify-content: center; font-weight: 600; overflow: hidden; flex-shrink: 0; }
.avatar.online::after { content: ""; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-main { flex: 1; min-width: 0; }
.player-name { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.player-games { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.player-tag { font-size: 11px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--text-2); background: var(--bg); }
.player-meta { margin-top: 6px; font-size: 12px; color: var(--text-3); }
.fav-btn, .fav-btn-clear { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; }
.fav-tiny { width: 16px; height: 16px; }

/* 大神榜 */
.rank-card { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.rank-no { width: 24px; text-align: center; font-weight: 800; font-style: italic; }
.rank-no.top1 { color: #ff7a18; } .rank-no.top2 { color: #8a94a6; } .rank-no.top3 { color: #c98a4b; }
.player-stat { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; }
.player-stat .fav-tiny { color: var(--text-3); }

/* 关注按钮（详情页较大） */
.fav-lg { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); color: var(--text-2); font-size: 13px; cursor: pointer; }
.fav-lg.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.fav-lg svg { width: 17px; height: 17px; }

/* 等级徽标 */
.level-badge { display: inline-flex; align-items: center; font-size: 11px; padding: 1px 7px; border-radius: 4px; color: #fff; background: var(--accent); vertical-align: 1px; margin-left: 4px; }

/* 打手个人主页 */
.pd-hero { display: flex; align-items: center; gap: 14px; }
.pd-avatar { width: 68px; height: 68px; }
.pd-name { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; }
.pd-role-chip { font-size: 12px; color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 4px; padding: 1px 8px; }
.pd-stats { display: flex; gap: 18px; margin-top: 10px; }
.pd-stat b { display: block; font-size: 17px; color: var(--text); }
.pd-stat span { font-size: 12px; color: var(--text-3); }
.pd-bio { margin-top: 10px; color: var(--text-2); font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.pd-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* 资料编辑：头像选择 */
.av-upload { display: flex; align-items: center; gap: 14px; }
.av-upload .avatar { width: 56px; height: 56px; }
.av-upload input { flex: 1; min-width: 0; }
.hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.tag-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pick label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; color: var(--text-2); }
.tag-pick input { display: none; }
.tag-pick input:checked + span { color: var(--accent); background: var(--accent-soft); }
.tag-pick label:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.tag-pick .tg { font-size: 12px; }

/* 订单状态筛选胶囊 */
.st-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.st-chip { font-size: 12px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 16px; color: var(--text-2); background: var(--card); }
.st-chip.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* 搜索页输入 */
.search-bar { display: flex; gap: 8px; margin: 14px 0; }
.search-bar .input { flex: 1; min-width: 0; }
.search-bar .btn { flex-shrink: 0; }
.search-mini { display: block; margin: 10px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--text-3); font-size: 13px; }
.classify-card-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; min-height: 18px; }

/* 空态操作按钮 */
.clf-empty .actions { justify-content: center; margin-top: 12px; }

/* 关注用户行（我的关注/收藏） */
.fav-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.fav-row + .fav-row { border-top: 1px solid var(--line); }

/* 我的页面等级进度条 */
.lvl-bar {
  margin: 0 12px 12px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
}
.lvl-bar-label { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.lvl-track { height: 6px; background: var(--bg-deep); border-radius: 3px; overflow: hidden; }
.lvl-fill { height: 100%; background: var(--accent); border-radius: 3px; }

/* =============================================
   选人·大神榜领奖台（第1居中最大，第2/3沉在两侧）
   ============================================= */
.podium { display: flex; justify-content: center; align-items: flex-start; gap: 18px; padding: 30px 10px 22px; max-width: 540px; margin: 0 auto; }
.podium-col { flex: 1; max-width: 150px; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; transition: transform .16s ease; }
.podium-col:hover { transform: translateY(-2px); }
.podium-2, .podium-3 { transform: translateY(18px); }
.podium-2:hover, .podium-3:hover { transform: translateY(16px); }
.podium-badge { font-size: 11px; font-weight: 800; line-height: 1; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-3); margin-bottom: 8px; }
.podium-1 .podium-badge { background: var(--accent); border-color: var(--accent); color: #fff; }
.podium-avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-deep); border: 3px solid #fff; box-shadow: var(--shadow);
  color: var(--text-2); font-weight: 700; font-size: 22px; flex-shrink: 0;
}
.podium-avatar.lg {
  width: 90px; height: 90px; font-size: 30px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent-line), var(--shadow-hover);
}
.podium-avatar img { width: 100%; height: 100%; object-fit: cover; }
.podium-name { margin-top: 9px; font-size: 14px; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-games { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; min-height: 20px; }
.podium-meta { margin-top: 5px; font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* 列表关注小按钮（真正可点击切换） */
.follow-mini { margin: 0; flex-shrink: 0; }
.follow-mini .fav-btn { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); color: var(--text-2); cursor: pointer; transition: all .16s ease; }
.follow-mini .fav-btn.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* =============================================
   后台订单概览统计条
   ============================================= */
.o-summary { display: flex; gap: 8px; margin: 4px 12px 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.o-summary::-webkit-scrollbar { display: none; }
.o-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--text-2); font-size: 12.5px;
  transition: all .16s ease;
}
.o-chip b { font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.o-chip:hover { border-color: var(--line-strong); }
.o-chip.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.o-chip.on b { color: var(--accent); }

/* 后台表格操作列：纵向整洁排列 */
.cell-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cell-actions form { display: flex; gap: 6px; align-items: center; margin: 0; }
@media (min-width: 840px) {
  .cell-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cell-actions .btn-sm, .cell-actions form { margin: 0; }
}

/* ---------- 通用确认弹窗 ---------- */
.confirm-mask { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; animation: cmfade .18s ease; }
@keyframes cmfade { from { opacity: 0; } to { opacity: 1; } }
.confirm-dialog { width: 280px; max-width: calc(100vw - 48px); background: #fff; border-radius: 14px; padding: 22px 20px 16px; text-align: center; box-shadow: 0 12px 32px rgba(0,0,0,.16); animation: cmp .2s ease; }
@keyframes cmp { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-icon { width: 46px; height: 46px; margin: 0 auto 12px; color: var(--danger, #ff3b30); }
.confirm-icon svg { width: 100%; height: 100%; }
.confirm-text { font-size: 16px; font-weight: 600; color: var(--text, #111); margin-bottom: 20px; line-height: 1.5; }
.confirm-btns { display: flex; gap: 10px; }
.confirm-btn { flex: 1; height: 40px; border-radius: 8px; font-size: 15px; border: none; cursor: pointer; transition: background .15s ease; }
.confirm-cancel { background: var(--bg-deep, #f2f3f5); color: var(--text-2, #666); }
.confirm-cancel:hover { background: #e7e8ea; }
.confirm-ok { background: var(--danger, #ff3b30); color: #fff; font-weight: 600; }
.confirm-ok:hover { background: #e6362b; }

/* ---------- 后台运营数据图表 ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.bar-chart { display: flex; align-items: stretch; gap: 6px; height: 168px; padding: 4px 2px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.bar-val { font-size: 11px; color: var(--text-2); margin-bottom: 3px; }
.bar-track { width: 62%; max-width: 30px; flex: 1; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; background: linear-gradient(180deg, var(--primary), #6fb3ff); border-radius: 5px 5px 2px 2px; min-height: 2px; transition: height .3s ease; }
.bar-label { font-size: 10px; color: var(--text-3); margin-top: 6px; white-space: nowrap; transform: rotate(-45deg); transform-origin: 10% 100%; height: 14px; }
.hbar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hbar-label { width: 56px; font-size: 12px; color: var(--text-2); flex-shrink: 0; }
.hbar-track { flex: 1; height: 10px; background: var(--bg-deep); border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; background: var(--primary); border-radius: 999px; min-width: 2px; transition: width .3s ease; }
.hbar-num { width: 26px; text-align: right; font-size: 12px; font-weight: 600; color: var(--text); flex-shrink: 0; }

/* ---------- 打手端收益概览 ---------- */
.earn-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.earn-kpi-item { text-align: center; padding: 6px 2px; }
.earn-kpi-val { font-size: 15px; font-weight: 700; color: var(--text); }
.earn-kpi-label { font-size: 11px; color: var(--text-3); margin-top: 3px; }
@media (max-width: 480px) { .earn-kpi { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 订单生命周期步骤条 ---------- */
.st-steps { display: flex; align-items: flex-start; margin: 0 0 18px; padding: 18px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.st-step { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.st-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg-deep); color: var(--text-3); font-size: 12px; font-weight: 600; border: 1px solid var(--line-strong); transition: all .2s; }
.st-dot svg { width: 13px; height: 13px; }
.st-step.on .st-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.st-step.cur .st-dot { box-shadow: 0 0 0 4px rgba(17,18,20,.08); }
.st-name { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.st-step.on .st-name { color: var(--text); font-weight: 600; }
.st-time { font-size: 10px; color: var(--text-3); }
.st-line { flex: 1; height: 2px; background: var(--line-strong); margin-top: 12px; min-width: 8px; transition: background .2s; }
.st-line.on { background: var(--primary); }
.st-steps-off { justify-content: center; font-size: 14px; color: var(--text-2); }
@media (max-width: 480px) { .st-time { display: none; } .st-name { font-size: 11px; } }

/* ---------- 分类页多条件筛选 ---------- */
.clf-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 4px 0 12px; min-width: 0; }
.clf-chip { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 14px; font-size: 12px; color: var(--text-2); background: #fff; transition: all .15s; }
.clf-chip:hover { border-color: var(--primary); }
.clf-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.clf-price { display: flex; align-items: center; gap: 5px; margin-left: auto; min-width: 0; }
.clf-price-in { width: 52px; padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12px; color: var(--text); min-width: 0; }
.clf-price-in:focus { outline: none; border-color: var(--primary); }
.clf-price .btn-sm { padding: 4px 10px; font-size: 12px; }
@media (max-width: 520px) { .clf-price { margin-left: 0; width: 100%; } .clf-price-in { flex: 1; width: auto; } }

/* ---------- 打手评级徽标 ---------- */
.grade-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; font-size: 10px; line-height: 16px; font-weight: 600; vertical-align: 1px; }
.grade-badge.g-gold { color: #7a5600; background: #fbe9c2; border: 1px solid #edcf97; }
.grade-badge.g-silver { color: #5c636a; background: #eceef0; border: 1px solid #d7dbdf; }
.grade-badge.g-info { color: #2f6fb0; background: #e8f1fb; border: 1px solid #c7dcf2; }
.grade-badge.g-ghost { color: var(--text-3); background: var(--bg-deep); border: 1px solid var(--line); }
.podium-grade { min-height: 20px; display: flex; align-items: center; justify-content: center; }
.podium-grade .grade-badge { margin-left: 0; }

/* 我的页菜单项 / 底部 Tab 红点 */
.mine-menu-item { position: relative; }
.mine-menu-dot {
  position: absolute; top: 10px; right: 14px;
  min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 8px; background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.tab-reddot { border-color: var(--bg); }

/* ---------- 页面跳转加载动画 ---------- */
.page-loading {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(1.5px);
  pointer-events: none; /* 即使短暂残留也不遮挡点击 */
}
.page-loading-spinner {
  width: 34px; height: 34px;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: page-loading-spin .8s linear infinite;
}
@keyframes page-loading-spin { to { transform: rotate(360deg); } }

/* ---------- 打手端优化：提现收款码状态 / 工作台工具条 ---------- */
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.wd-paycode { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius); font-size: 13px; margin-bottom: 14px; }
.wd-paycode .wd-paycode-ico { width: 18px; height: 18px; flex-shrink: 0; }
.wd-paycode.ok { color: #1f6b45; background: #ecf7f1; border: 1px solid #c8e8d6; }
.wd-paycode.ok a { color: #1f6b45; font-weight: 600; margin-left: auto; white-space: nowrap; }
.wd-paycode.warn { color: #7a5600; background: #fbf3e3; border: 1px solid #eed6a8; }
.wd-paycode.warn a { color: #7a5600; font-weight: 600; margin-left: auto; white-space: nowrap; }
.work-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 12px 16px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.work-bal { display: flex; align-items: center; gap: 10px; }
.work-bal-ico { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--primary); background: var(--bg-deep); border-radius: 8px; flex-shrink: 0; }
.work-bal-ico svg { width: 22px; height: 22px; }
.work-bal-label { font-size: 12px; color: var(--text-3); }
.work-bal-val { font-size: 19px; font-weight: 700; color: var(--text); margin-top: 2px; }
.work-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.work-actions .wbtn { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 13px; color: var(--text-2); background: #fff; display: inline-flex; align-items: center; white-space: nowrap; }
.work-actions .wbtn-primary { color: #fff; background: var(--primary); border-color: var(--primary); font-weight: 600; }
@media (max-width: 560px) {
  .work-tools { flex-direction: column; align-items: stretch; }
  .work-actions .wbtn { flex: 1; justify-content: center; }
}

/* ---------- 顾客端优化：下单成功卡 / 支付页 ---------- */
.form-group .hint-inline { font-weight: 400; font-size: 11px; color: var(--text-3); margin-left: 6px; }
.pay-success-card { background: var(--card); border: 1px solid var(--ok); border-radius: var(--radius); padding: 22px 16px; margin-bottom: 16px; text-align: center; }
.pay-success-check { width: 46px; height: 46px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #ecf7f1; color: var(--ok); }
.pay-success-check svg { width: 26px; height: 26px; }
.pay-success-title { font-size: 19px; font-weight: 700; color: var(--text); }
.pay-success-sub { font-size: 13px; color: var(--text-3); margin: 6px 0 16px; }
.pay-success-btn { display: inline-flex; }
.pay-amount-card { padding: 6px 2px 4px; text-align: center; }
.pay-amount-label { font-size: 13px; color: var(--text-3); }
.pay-amount-val { font-size: 30px; font-weight: 700; color: var(--danger); margin-top: 4px; }
.pay-methods { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.pay-methods form { margin: 0; }
.pay-method { width: 100%; display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 13px 14px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); text-align: left; color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.pay-method:hover { border-color: var(--primary); }
.pay-method[disabled] { opacity: .55; cursor: not-allowed; }
.pay-method-ico { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--bg-deep); color: var(--text-2); }
.pay-method-ico svg { width: 20px; height: 20px; }
.pay-method-primary { border-color: var(--primary); }
.pay-method-primary .pay-method-ico { background: var(--primary); color: #fff; }
.pay-method-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pay-method-title { font-size: 15px; font-weight: 600; }
.pay-method-title small { font-size: 12px; font-weight: 400; color: var(--text-3); }
.pay-method-sub { font-size: 12px; color: var(--text-3); }
.pay-method-go { flex-shrink: 0; color: var(--text-2); font-weight: 600; }
.remember-row { display: flex; align-items: center; gap: 6px; margin: 2px 0 14px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.remember-row input { width: 15px; height: 15px; accent-color: var(--primary); }

/* ---------- 打手工作台：我的订单操作卡片 ---------- */
.bst-order-list { display: flex; flex-direction: column; gap: 12px; }
.bst-order { position: relative; display: block; padding: 13px 15px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.bst-order:hover { border-color: var(--line-strong); }
.bst-order:active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(17,18,20,.05); }
.bst-order-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bst-order-name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bst-order-name + .badge { flex-shrink: 0; }
.bst-order-mid { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.bst-order-no { font-size: 12px; color: var(--text-3); }
.bst-order-gain { font-size: 13px; font-weight: 700; color: var(--ok); }
.bst-order-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.bst-order-meta { font-size: 12px; color: var(--text-3); }
.bst-order-action { font-size: 13px; font-weight: 600; white-space: nowrap; }
.bst-order-action.act-1 { color: var(--primary); }
.bst-order-action.act-2 { color: var(--text-2); }

/* ---------- 拼多多式角标：逐单未读红点 + 接单大厅抢单热度 ---------- */
.order-dot { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 0 0 2px var(--card); }
.o-no-wrap { position: relative; display: inline-block; }
.hall-card { position: relative; }
.grab-heat { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 10px; background: rgba(255,59,48,.12); color: var(--danger); font-size: 11px; font-weight: 600; line-height: 1.6; white-space: nowrap; flex-shrink: 0; }
.grab-heat b { font-size: 12px; }

/* =============================================
   响应式整体适配补强
   目的：手机 / 平板 / 电脑观感一致，窄屏不再被压缩难看
   ============================================= */
/* 平板：商品保持 2 列更舒展，避免在居中列里被挤成 4 细条 */
@media (min-width: 640px) and (max-width: 999px) {
  .goods-list { grid-template-columns: repeat(2, 1fr); }
}
/* 中等宽度优化：内容列、卡片、文字均不溢出 */
@media (max-width: 420px) {
  .home-topbar { padding-left: 10px; padding-right: 10px; }
  .wrap-pad { padding: 0 10px; }
  .goods-list { padding-left: 10px; padding-right: 10px; gap: 10px; }
  .goods-title { font-size: 13px; }
  .goods-price { font-size: 15px; }
  .tab-text { font-size: 10px; }
  .cat-tab, .filter-pill, .sort-pill { padding-left: 12px; padding-right: 12px; }
}
/* 超窄屏兜底：所有可滚动的胶囊/筛选可横滑，不换行挤压 */
@media (max-width: 360px) {
  .st-filter, .filter-scroll, .cat-tabs-in, .tag-pick { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
  .st-filter::-webkit-scrollbar, .filter-scroll::-webkit-scrollbar, .cat-tabs-in::-webkit-scrollbar, .tag-pick::-webkit-scrollbar { display: none; }
  .st-chip, .clf-chip, .tag-pick label { white-space: nowrap; flex-shrink: 0; }
  .podium { gap: 10px; padding-left: 4px; padding-right: 4px; }
}
/* 打手订单卡 / 支付项：窄屏文字不换行错位 */
@media (max-width: 460px) {
  .bst-order-mid { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bst-order-gain { margin-top: 0; }
  .pay-method { gap: 10px; }
}