/* ==========================================================================
   抢单大厅 公共样式（参照线上 ogh-* 设计语言重建）
   ========================================================================== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  background: #f3f4f6;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
input, select, textarea { outline: none; }
img { max-width: 100%; display: block; }
body { padding-bottom: 4.6rem; }
body.no-tabbar { padding-bottom: 0; }

:root {
  --red: #a78bfa;
  --red-dark: #8b5cf6;
  --line: #eceff1;
  --muted: #9aa4af;
  --text: #1f2937;
  --green: #16a34a;
  --radius: 14px;
}

/* ---------- 细顶栏（独创：非整块渐变卡） ---------- */
.ogh-stat-bar {
  display: block;
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  margin: 0; padding: 0;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid #ede9fe;
}
.ogh-stat-bar.ogh-stat-hidden { display: none; }
.ogh-stat-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 52rem; margin: 0 auto; height: 2.9rem; padding: 0 .9rem;
}
.ogh-brand-mini { display: flex; align-items: center; gap: .45rem; }
.ogh-logo-dot {
  width: 1.6rem; height: 1.6rem; border-radius: 50%; position: relative; flex-shrink: 0;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 60%, #7c3aed 100%);
  box-shadow: 0 2px 6px rgba(139, 92, 246, .35);
}
.ogh-logo-dot::after {
  content: ''; position: absolute; inset: .38rem; border-radius: 50%; background: #fff;
}
.ogh-brand-mini-name { font-size: 1rem; font-weight: 700; color: #1f2937; letter-spacing: .04em; }
.ogh-stat-rank-link-mini {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .2rem;
  height: 1.9rem; padding: 0 .7rem; border-radius: 999px;
  background: #f5f3ff; color: #7c3aed; font-size: .76rem; font-weight: 600;
  border: 1px solid #ddd6fe;
}
.ogh-stat-rank-link-mini:active { background: #ede9fe; }
.ogh-stat-rank-link-mini svg { width: .95rem; height: .95rem; }
body.ogh-has-stat-bar { padding-top: 2.9rem; }

/* ---------- 数据卡（顶栏下方独立白卡） ---------- */
.ogh-stat-cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: .65rem .7rem 0; }
.ogh-stat-card2 {
  display: flex; align-items: center; gap: .6rem; min-width: 0;
  background: #fff; border: 1px solid #ede9fe; border-radius: 16px;
  padding: .65rem .7rem; box-shadow: 0 2px 10px rgba(139, 92, 246, .08);
}
.ogh-stat-ico {
  width: 2.3rem; height: 2.3rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: #f5f3ff; font-size: 1.15rem; font-style: normal;
}
.ogh-stat-card2-body { min-width: 0; }
.ogh-stat-card2 .ogh-stat-label { font-size: .66rem; color: #8b8b94; margin-bottom: .12rem; }
.ogh-stat-card2 .ogh-stat-value { font-size: 1.12rem; font-weight: 800; color: #7c3aed; line-height: 1.2; }
.ogh-stat-card2 .ogh-stat-value .ogh-stat-sub { font-size: .68rem; color: #a3a3ad; font-weight: 400; }

/* ---------- 普通页面标题栏 ---------- */
.ogh-top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: .5rem;
  height: 3.1rem; padding: 0 .8rem;
  background: #fff; border-bottom: 1px solid var(--line);
}
.ogh-top h1 { font-size: 1.02rem; font-weight: 600; margin: 0; flex: 1; text-align: center; }
.ogh-top .ogh-top-action { min-width: 2.6rem; font-size: .82rem; color: #6b7280; text-align: right; }
.ogh-top .ogh-back { min-width: 2.6rem; display: inline-flex; align-items: center; color: #374151; font-size: .86rem; gap: .1rem; }
.ogh-top .ogh-back svg { width: 1rem; height: 1rem; }

/* ---------- 深色毛玻璃标题栏（个人中心 / 榜单 / 发单后台 用） ---------- */
body.theme-dark { background-color: #eef1f4; color: #222; }
body.theme-dark::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: #eef1f4;
  background-size: auto;
}
.ogh-top.ogh-top-glass {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: auto; padding: 0;
  margin: 0;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid #ede9fe;
  box-shadow: none;
  border-radius: 0;
}
.ogh-top-glass .ogh-top-inner {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0 4.4rem; margin: 0 auto; max-width: 52rem;
}
/* 只有返回按钮的页面不需要右侧留白 */
.ogh-top-glass .ogh-top-inner.no-action { padding-right: 2.8rem; }
/* 右侧有两个按钮（发单后台：设置 + 提现）时留更多空间 */
.ogh-top-glass .ogh-top-inner.two-action { padding: 0 8.4rem; }
.ogh-top-glass .ogh-top-action.act-2 { right: 4.4rem; }
.ogh-top-glass h1, .ogh-top-glass .ogh-title {
  font-size: 1.02rem; font-weight: 700; color: #1f2937; letter-spacing: .02em; margin: 0; text-align: center;
}
.ogh-top-glass .ogh-back {
  position: absolute; left: .5rem; top: 50%; transform: translateY(-50%);
  width: 2.15rem; height: 2.15rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f5f3ff; color: #7c3aed; min-width: 0;
}
.ogh-top-glass .ogh-back svg { width: 1.1rem; height: 1.1rem; }
.ogh-top-glass .ogh-top-action, .ogh-top-glass .ogh-logout {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
  height: 1.7rem; padding: 0 .55rem; min-width: 0;
  border: 1px solid #ddd6fe; border-radius: 999px;
  background: #f5f3ff; color: #7c3aed; font-size: .72rem; font-weight: 600; line-height: 1;
}
.ogh-top-glass .ogh-top-action:active, .ogh-top-glass .ogh-logout:active { background: #ede9fe; }
/* 带固定毛玻璃标题栏的页面统一留出顶部空间（标题栏 + 视觉余量） */
body.has-glass-top { padding-top: 0; }
body.has-glass-top .ogh-body-pad { padding-top: 3.1rem; }

/* ---------- 悬浮胶囊底部 Tab（独创工作台风格） ---------- */
.ogh-tabbar {
  position: fixed; left: .5rem; right: .5rem; bottom: .45rem; z-index: 90;
  display: flex; align-items: stretch; background: #fff; border: 1px solid #e9efec;
  border-radius: 16px; box-shadow: 0 6px 20px rgba(15, 23, 42, .12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
body.theme-dark .ogh-tabbar {
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid #e9efec;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .12);
}
.ogh-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .1rem; padding: .3rem .25rem .35rem; color: #9aa4af; font-size: .66rem; position: relative;
  border-radius: 12px;
}
.ogh-tab svg { width: 1.28rem; height: 1.28rem; margin-bottom: .1rem; }
body.theme-dark .ogh-tab { color: #6b7280; }
body.theme-dark .ogh-tab svg { color: #9aa4af; }
body.theme-dark .ogh-tab.active {
  color: #8b5cf6; font-weight: 700;
  background: #f5f3ff;
}
body.theme-dark .ogh-tab.active svg { color: #a78bfa; }
.ogh-tab.active { color: var(--red); font-weight: 600; }
.ogh-tab .ogh-tab-dot {
  position: absolute; top: .3rem; right: 50%; margin-right: -1.1rem;
  min-width: 1rem; height: 1rem; padding: 0 .2rem; border-radius: .5rem;
  background: var(--red); color: #fff; font-size: .6rem; line-height: 1rem; text-align: center;
}
.ogh-body-pad { padding: .65rem 0 4.75rem; min-height: 100vh; }
body.theme-dark .ogh-body-pad { background: #f3f4f6; }

/* ---------- 搜索 + 分类筛选 ---------- */
.ogh-m-filter { background: #fff; padding: .55rem .7rem .35rem; border-bottom: 1px solid var(--line); }
.ogh-search { display: flex; align-items: center; gap: .45rem; margin-bottom: .55rem; }
.ogh-search input {
  flex: 1; height: 2.3rem; padding: 0 .75rem; border-radius: 12px;
  border: 1px solid #e2eee9; background: #f2f7f5; font-size: .84rem;
}
.ogh-search button {
  height: 2.3rem; padding: 0 .9rem; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #a78bfa, #8b5cf6); color: #fff; font-size: .82rem; font-weight: 600;
}
.ogh-search button:active { filter: brightness(.94); }
.ogh-m-section { margin-bottom: .5rem; }
.ogh-m-section[hidden] { display: none !important; }
.ogh-m-section-head { display: flex; align-items: center; justify-content: space-between; }
.ogh-m-section-title { font-size: .72rem; font-weight: 600; color: #374151; margin-bottom: .4rem; }
.ogh-m-section-head .ogh-m-section-title { margin-bottom: 0; }
.ogh-m-series-toggle { border: none; background: transparent; color: #8b5cf6; font-size: .68rem; display: inline-flex; align-items: center; gap: .15rem; padding: .1rem .2rem; font-weight: 600; }
.ogh-m-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: .4rem; }
.ogh-m-chip {
  display: flex; align-items: center; justify-content: center;
  height: 2.45rem; border-radius: 12px; font-size: .76rem;
  background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; white-space: nowrap;
  font-weight: 600; transition: transform .12s ease;
}
.ogh-m-chip:active { transform: scale(.96); }
.ogh-m-chip.is-active { background: linear-gradient(135deg, #a78bfa, #8b5cf6); color: #fff; border-color: transparent; box-shadow: 0 3px 8px rgba(167, 139, 250, .3); font-weight: 700; }
.ogh-m-more { font-size: .72rem; color: #8b5cf6; }

/* ---------- 订单列表 ---------- */
.ogh-list-wrap { padding: .6rem .7rem 1rem; }
.ogh-toolbar { display: flex; align-items: center; justify-content: space-between; padding: .1rem .2rem .5rem; }
.ogh-toolbar .ogh-count { font-size: .74rem; color: var(--muted); }
.ogh-refresh-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  border: 1px solid var(--line); background: #fff; color: #4b5563;
  font-size: .76rem; padding: .32rem .7rem; border-radius: 1rem;
}
.ogh-refresh-btn svg { width: .9rem; height: .9rem; }
.ogh-refresh-btn.is-spinning svg { animation: ogh-spin .8s linear infinite; }
@keyframes ogh-spin { to { transform: rotate(360deg); } }

.ogh-item {
  position: relative; display: flex; gap: .6rem;
  background: #fff; border-radius: 14px; padding: .8rem .85rem;
  margin-bottom: .65rem; box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
  border: 1px solid #eef2f0;
}
.ogh-item-clickable:active { background: #fafbfc; }
.ogh-item.is-new { animation: ogh-flash 1.8s ease-out; border-color: #ddd6fe; }
@keyframes ogh-flash {
  0% { background: #f7f4ff; box-shadow: 0 0 0 0 rgba(167, 139, 250, .35); }
  100% { background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
}
.ogh-item.is-mine { border-left: 3px solid var(--red); }
.ogh-item-badge {
  position: absolute; right: 0; top: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: #fff; font-size: .64rem; font-weight: 700;
  padding: .14rem .6rem; border-radius: 0 16px 0 12px;
  letter-spacing: .05em;
}
.ogh-item-urgent {
  position: absolute; left: 0; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  color: #fff; font-size: .64rem; font-weight: 700;
  padding: .14rem .55rem; border-radius: 14px 0 12px 0;
  letter-spacing: .08em;
  box-shadow: 0 2px 6px rgba(220, 38, 38, .35);
}
.ogh-item-body { flex: 1; min-width: 0; }
/* 有商品图时：左边缩略图 + 右边文字 */
.ogh-item-main { display: flex; gap: .55rem; align-items: center; }
.ogh-item-thumb {
  width: 3.4rem; height: 3.4rem; flex-shrink: 0; border-radius: 12px;
  object-fit: cover; background: #f3f4f6; border: 1px solid #eef1f4;
}
.ogh-item-text { flex: 1; min-width: 0; }
/* 详情页主图 */
.ogh-detail-imgs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.ogh-detail-imgs img {
  width: 5.2rem; height: 5.2rem; object-fit: cover; border-radius: 8px;
  border: 1px solid #eef1f4; background: #f3f4f6; cursor: zoom-in;
}
.ogh-img-viewer {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.9);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.ogh-img-viewer.is-show { display: flex; }
.ogh-img-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ogh-item-title { font-size: .92rem; font-weight: 600; line-height: 1.35; color: #111827; word-break: break-all; }
.ogh-item-sn { font-size: .68rem; color: var(--muted); margin-top: .18rem; }
.ogh-item-zone { font-size: .74rem; color: #6b7280; margin-bottom: .2rem; word-break: break-all; }
.ogh-item-content { margin-top: .5rem; }
.ogh-item-price-row { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.ogh-item-price { font-size: 1.4rem; font-weight: 800; color: #8b5cf6; line-height: 1; }
.ogh-item-price::first-letter { font-size: .85rem; }
.ogh-item-progress { flex: 1; height: .42rem; background: #ede9fe; border-radius: 999px; overflow: hidden; }
.ogh-item-progress i { display: block; height: 100%; background: linear-gradient(90deg, #a78bfa, #c4b5fd); border-radius: 999px; }
.ogh-item-deposit { font-size: .68rem; color: #d97706; }
.ogh-item-btn-cell { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: .55rem; padding-top: .55rem; border-top: 1px dashed #e9f0ec; }
.ogh-item-meta { font-size: .72rem; color: var(--muted); }
.btn-grab {
  border: none; border-radius: 999px; padding: .45rem .95rem;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: #fff; font-size: .82rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 3px 8px rgba(167, 139, 250, .3);
}
.btn-grab:active:not(:disabled) { transform: translateY(1px); }
.btn-grab:disabled { background: #d1d5db; box-shadow: none; color: #f9fafb; }
.ogh-item-own { display: inline-flex; align-items: center; gap: .4rem; }
.btn-reprice {
  border: 1px solid #c4b5fd; border-radius: 999px; padding: .38rem .8rem;
  background: #fff; color: #7c3aed; font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.btn-reprice:active { transform: translateY(1px); background: #f5f3ff; }
.ogh-item-left-tag {
  font-size: .68rem; color: #7c3aed; background: #f5f3ff;
  border-radius: 999px; padding: .16rem .55rem; font-weight: 600;
}
.ogh-item-grabbed-tag {
  font-size: .68rem; color: #fff; background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  border-radius: 999px; padding: .16rem .55rem; font-weight: 700;
  box-shadow: 0 2px 6px rgba(139, 92, 246, .3);
}
.ogh-item-tags { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.ogh-empty { text-align: center; color: var(--muted); font-size: .82rem; padding: 3.2rem 0; }
.ogh-empty::before {
  content: ''; display: block; width: 3rem; height: 3rem; margin: 0 auto .7rem;
  border-radius: 50%; background: #ede9fe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center center;
  background-size: 1.4rem;
}
.ogh-end { text-align: center; color: #c4c9d0; font-size: .72rem; padding: .8rem 0 1.4rem; }

/* ---------- 公告栏 ---------- */
.ogh-notice-bar {
  display: flex; align-items: center; gap: .4rem;
  margin: .55rem .7rem 0; padding: .5rem .7rem;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid #e4dcfb; border-radius: 12px;
}
.ogh-notice-ico { font-size: .95rem; flex-shrink: 0; }
.ogh-notice-track {
  flex: 1; display: flex; align-items: center; gap: .5rem;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.ogh-notice-track::-webkit-scrollbar { display: none; }
.ogh-notice-item {
  font-size: .78rem; color: #4c1d95; background: #fff; border: 1px solid #ddd6fe;
  border-radius: 999px; padding: .24rem .7rem; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: .3rem; max-width: 12rem;
  overflow: hidden; text-overflow: ellipsis;
}
.ogh-notice-item:active { background: #ede9fe; }
.ogh-notice-dot { width: .32rem; height: .32rem; border-radius: 50%; background: #8b5cf6; flex-shrink: 0; }
.ogh-notice-empty { font-size: .78rem; color: var(--muted); }
.ogh-notice-admin {
  border: 1px solid #c4b5fd; border-radius: 999px; padding: .3rem .65rem;
  background: #fff; color: #7c3aed; font-size: .72rem; font-weight: 600; flex-shrink: 0;
}
.ogh-notice-admin:active { background: #f5f3ff; }
.ogh-notice-detail { font-size: .82rem; color: #374151; line-height: 1.7; }
.ogh-notice-time { font-size: .7rem; color: var(--muted); margin-bottom: .45rem; }
.ogh-notice-content { word-break: break-word; }
.ogh-na-list { margin-top: .8rem; border-top: 1px dashed #e9f0ec; padding-top: .6rem; }
.ogh-na-empty { font-size: .76rem; color: var(--muted); text-align: center; padding: .6rem 0; }
.ogh-na-row {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .55rem .6rem; border-radius: 10px; background: #faf9ff; margin-bottom: .4rem; cursor: pointer;
}
.ogh-na-row:active { background: #f5f3ff; }
.ogh-na-title { font-size: .8rem; color: #1f2937; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ogh-na-time { font-size: .68rem; color: var(--muted); flex-shrink: 0; }

/* ---------- 底部 Tab（基础样式见下方深色毛玻璃一节） ---------- */

/* ---------- 弹窗 / 表单 ---------- */
.ogh-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(17, 24, 39, .5);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.ogh-mask.is-show { display: flex; }
.ogh-box {
  width: 100%; max-width: 24rem; background: #fff; border-radius: 14px;
  padding: 1.1rem 1rem 1rem; max-height: 88vh; overflow-y: auto;
}
.ogh-box h3 { margin: 0 0 .8rem; font-size: 1rem; text-align: center; }
.ogh-box p.ogh-hint { font-size: .74rem; color: var(--muted); margin: .5rem 0 0; line-height: 1.5; }
.ogh-field { margin-bottom: .6rem; }
.ogh-field label { display: block; font-size: .76rem; color: #4b5563; margin-bottom: .25rem; font-weight: 600; }
.ogh-field input, .ogh-field select, .ogh-field textarea {
  width: 100%; height: 2.45rem; padding: 0 .7rem; border: 1px solid #e2e6ea;
  border-radius: 8px; background: #fff; font-size: .86rem;
}
.ogh-field textarea { height: auto; min-height: 3.6rem; padding: .5rem .7rem; line-height: 1.5; resize: vertical; }
.ogh-field .ogh-tip { font-size: .68rem; color: var(--muted); margin-top: .22rem; }
.ogh-row { display: flex; gap: .55rem; }
.ogh-row > * { flex: 1; min-width: 0; }
.ogh-btn {
  width: 100%; height: 2.6rem; border: none; border-radius: 9px;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: #fff; font-size: .92rem; font-weight: 600; margin-top: .3rem;
}
.ogh-btn:active { opacity: .9; }
.ogh-btn.ghost { background: #f3f4f6; color: #4b5563; }
.ogh-btn.danger { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.ogh-btn:disabled { background: #d1d5db; color: #f9fafb; }
.ogh-btn-row { display: flex; gap: .55rem; margin-top: .5rem; }
.ogh-btn-row .ogh-btn { margin-top: 0; }
.ogh-login-mode-tabs { display: flex; gap: .4rem; margin-bottom: .7rem; }
.ogh-login-mode-tab {
  flex: 1; height: 2.1rem; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; color: #6b7280; font-size: .82rem;
}
.ogh-login-mode-tab.is-active { border-color: var(--red); color: var(--red); background: #f5f3ff; font-weight: 600; }
.ogh-divider { display: flex; align-items: center; gap: .5rem; color: #c4c9d0; font-size: .72rem; margin: .75rem 0; }
.ogh-divider::before, .ogh-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ogh-code-row { display: flex; gap: .5rem; }
.ogh-code-row input { flex: 1; }
.ogh-code-row button {
  flex-shrink: 0; padding: 0 .8rem; height: 2.45rem; border: 1px solid var(--red);
  background: #fff; color: var(--red); border-radius: 8px; font-size: .78rem; font-weight: 600;
}
.ogh-code-row button:disabled { border-color: #e2e6ea; color: var(--muted); }
.ogh-qty-row { display: flex; align-items: center; gap: .5rem; }
.ogh-qty-row input { flex: 1; text-align: center; }
.ogh-qty-row button {
  width: 2.45rem; height: 2.45rem; border-radius: 8px; border: 1px solid #e2e6ea;
  background: #f9fafb; font-size: 1.1rem; color: #4b5563;
}
.ogh-confirm-msg { font-size: .8rem; color: #4b5563; line-height: 1.6; white-space: pre-wrap; background: #f9fafb; padding: .6rem .7rem; border-radius: 8px; margin-bottom: .7rem; }

/* ---------- Toast ---------- */
#oghToast {
  position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%);
  z-index: 999; background: rgba(17, 24, 39, .88); color: #fff;
  padding: .6rem .95rem; border-radius: 8px; font-size: .84rem; max-width: 78vw;
  line-height: 1.45; text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .18s ease; white-space: pre-wrap;
}
#oghToast.is-show { opacity: 1; }

/* ---------- 实时状态小圆点 ---------- */
.ogh-live { display: inline-flex; align-items: center; gap: .28rem; font-size: .68rem; color: var(--muted); }
.ogh-live i { width: .42rem; height: .42rem; border-radius: 50%; background: #c4c9d0; display: inline-block; }
.ogh-live.on i { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.ogh-live.off i { background: #ef4444; }

/* ---------- 卡片通用 ---------- */
.ogh-card { background: #fff; border-radius: var(--radius); padding: .9rem; margin: 0 .7rem .7rem; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
.ogh-card-title { font-size: .84rem; font-weight: 600; margin-bottom: .6rem; color: #111827; }
.ogh-kv { display: flex; align-items: center; justify-content: space-between; padding: .42rem 0; font-size: .84rem; border-bottom: 1px dashed #f1f3f5; }
.ogh-kv:last-child { border-bottom: none; }
.ogh-kv .k { color: #6b7280; }
.ogh-kv .v { font-weight: 600; color: #111827; }
.ogh-tabs {
  display: flex; gap: 0; padding: .3rem .7rem;
  margin: 0 .7rem .2rem; background: #eef2f0; border-radius: 999px;
}
.ogh-tabs button {
  flex: 1; height: 2rem; border: none; border-radius: 999px; background: transparent;
  color: #6b7280; font-size: .8rem; transition: all .15s ease;
}
.ogh-tabs button.is-active {
  background: #fff; color: #8b5cf6; font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}

/* ---------- 抢单结果里的高亮 ---------- */
.t-red { color: var(--red); }
.t-green { color: var(--green); }
.t-muted { color: var(--muted); }
.t-bold { font-weight: 700; }
.t-sm { font-size: .74rem; }
.t-mt { margin-top: .5rem; }
.t-center { text-align: center; }
.hidden { display: none !important; }

/* ---------- 排行榜 ---------- */
.ogh-rank-hero {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: #fff; padding: 1.1rem .9rem 1.4rem; text-align: center;
}
.ogh-rank-hero .t1 { font-size: 1.15rem; font-weight: 700; }
.ogh-rank-hero .t2 { font-size: .74rem; opacity: .85; margin-top: .25rem; }
.ogh-rank-list { margin: -0.8rem .7rem 1rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.ogh-rank-item { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-bottom: 1px solid #f5f6f8; }
.ogh-rank-item:last-child { border-bottom: none; }
.ogh-rank-no { width: 1.7rem; height: 1.7rem; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; color: #fff; background: #c7ccd3; }
.ogh-rank-no.is-top1 { background: linear-gradient(135deg, #f7b733 0%, #e08a00 100%); }
.ogh-rank-no.is-top2 { background: linear-gradient(135deg, #b8c2cc 0%, #8d99a6 100%); }
.ogh-rank-no.is-top3 { background: linear-gradient(135deg, #d59a6a 0%, #a9713f 100%); }
.ogh-rank-avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; object-fit: cover; background: #eef1f4; }
.ogh-rank-info { flex: 1; min-width: 0; }
.ogh-rank-name { font-size: .84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ogh-rank-sub { font-size: .68rem; color: var(--muted); margin-top: .1rem; }
.ogh-rank-val { text-align: right; }
.ogh-rank-val .n { font-size: 1rem; font-weight: 700; color: var(--red); }
.ogh-count-unit { font-size: .68rem; color: var(--muted); margin-left: .1rem; font-weight: 400; }
.ogh-rank-val .m { font-size: .68rem; color: var(--muted); }

/* ---------- 钱包 ---------- */
.ogh-wallet-hero {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  color: #fff; padding: 1.1rem .9rem 1.5rem;
}
.ogh-wallet-hero .lab { font-size: .74rem; opacity: .85; }
.ogh-wallet-hero .amt { font-size: 1.9rem; font-weight: 700; line-height: 1.25; }
.ogh-wallet-hero .amt small { font-size: .95rem; font-weight: 500; margin-right: .15rem; }
.ogh-wallet-hero .sub { display: flex; gap: 1.4rem; margin-top: .7rem; font-size: .74rem; opacity: .9; }
.ogh-wallet-actions { display: flex; gap: .6rem; margin: -0.9rem .7rem .7rem; }
.ogh-wallet-actions button {
  flex: 1; height: 2.5rem; border: none; border-radius: 10px; background: #fff;
  color: var(--red); font-weight: 600; font-size: .86rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .1);
}
.ogh-wallet-actions button.ghost { color: #4b5563; }
.ogh-log-item { display: flex; align-items: center; justify-content: space-between; padding: .62rem 0; border-bottom: 1px solid #f5f6f8; }
.ogh-log-item:last-child { border-bottom: none; }
.ogh-log-item .info { flex: 1; min-width: 0; }
.ogh-log-item .name { font-size: .82rem; color: #111827; }
.ogh-log-item .time { font-size: .68rem; color: var(--muted); margin-top: .15rem; }
.ogh-log-item .amt { font-size: .92rem; font-weight: 700; }
.ogh-log-item .amt.plus { color: var(--green); }
.ogh-log-item .amt.minus { color: var(--red); }

/* ---------- 我的订单 ---------- */
.ogh-my-item { background: #fff; border-radius: var(--radius); padding: .8rem; margin: 0 .7rem .6rem; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.ogh-my-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ogh-my-title { font-size: .88rem; font-weight: 600; flex: 1; min-width: 0; word-break: break-all; }
.ogh-my-state { font-size: .7rem; padding: .14rem .45rem; border-radius: .6rem; flex-shrink: 0; }
.ogh-my-state.s1 { background: #fff7ed; color: #d97706; }
.ogh-my-state.s2 { background: #f0fdf4; color: var(--green); }
.ogh-my-state.s3 { background: #f3f4f6; color: var(--muted); }
.ogh-my-meta { font-size: .72rem; color: var(--muted); margin-top: .35rem; line-height: 1.6; }
.ogh-my-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .55rem; padding-top: .55rem; border-top: 1px dashed #f1f3f5; }
.ogh-my-amount { font-size: 1rem; font-weight: 700; color: var(--red); }
.ogh-my-actions { display: flex; gap: .45rem; }
.ogh-mini-btn {
  border: 1px solid var(--line); background: #fff; color: #4b5563;
  border-radius: .9rem; padding: .3rem .7rem; font-size: .74rem;
}
.ogh-mini-btn.primary { border-color: var(--red); color: var(--red); }
.ogh-mini-btn.danger { border-color: #fecaca; color: #dc2626; }

/* ---------- 发单后台 ---------- */
.ogh-admin-wrap { max-width: 46rem; margin: 0 auto; padding: .7rem .7rem 3rem; }
/* 后台页自带固定毛玻璃标题栏，内容区自行留出顶部空间 */
.ogh-admin-page { padding: 4rem 0 3rem; min-height: 100vh; background: #f3f4f6; }
.ogh-admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin: .4rem 0 .7rem; }
.ogh-stat-cell { background: #fff; border-radius: 10px; padding: .7rem; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.ogh-stat-cell .l { font-size: .7rem; color: var(--muted); }
.ogh-stat-cell .v { font-size: 1.15rem; font-weight: 700; margin-top: .18rem; }
.ogh-admin-tabs { display: flex; gap: .4rem; margin-bottom: .7rem; overflow-x: auto; }
.ogh-admin-tabs button {
  flex-shrink: 0; height: 2.1rem; padding: 0 .85rem; border: none; border-radius: 8px;
  background: #eef1f4; color: #6b7280; font-size: .8rem;
}
.ogh-admin-tabs button.is-active { background: var(--red); color: #fff; font-weight: 600; }
.ogh-table-wrap { overflow-x: auto; background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
table.ogh-table { width: 100%; border-collapse: collapse; font-size: .78rem; min-width: 40rem; }
table.ogh-table th, table.ogh-table td { padding: .5rem .6rem; text-align: left; border-bottom: 1px solid #f5f6f8; white-space: nowrap; }
table.ogh-table th { background: #fafbfc; color: #6b7280; font-weight: 600; font-size: .74rem; }
table.ogh-table td.wrap { white-space: normal; max-width: 16rem; word-break: break-word; overflow-wrap: anywhere; }

/* 窄屏（手机）下表格改为卡片流式排版，避免中文逐字换行 */
@media (max-width: 719px) {
  .ogh-table-wrap { background: transparent; box-shadow: none; border-radius: 0; }
  table.ogh-table { min-width: 0; display: block; }
  table.ogh-table thead { display: none; }
  table.ogh-table tbody { display: block; }
  table.ogh-table tr {
    display: block; background: #fff; border-radius: 10px; padding: .7rem .8rem;
    margin-bottom: .6rem; box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
  }
  table.ogh-table td {
    display: flex; align-items: flex-start; gap: .6rem;
    padding: .22rem 0; border-bottom: none; white-space: normal;
    word-break: break-word; overflow-wrap: anywhere;
  }
  table.ogh-table td::before {
    content: attr(data-label);
    flex: 0 0 4.6rem; color: #9aa4af; font-size: .72rem; line-height: 1.6;
  }
  table.ogh-table td.wrap { max-width: none; }
  table.ogh-table td[data-label="标题"] { flex-direction: column; gap: .1rem; }
  table.ogh-table td[data-label="标题"]::before { flex: none; }
  table.ogh-table td[data-label="标题"] { font-weight: 600; font-size: .86rem; }
  table.ogh-table td[data-label="操作"] { flex-wrap: wrap; padding-top: .5rem; border-top: 1px dashed #f1f3f5; margin-top: .3rem; }
  table.ogh-table td[data-label="操作"]::before { display: none; }
  .ogh-progress { width: 4.5rem; }
}
.ogh-progress { height: .38rem; border-radius: .19rem; background: #eef1f4; overflow: hidden; width: 5.5rem; }
.ogh-progress > i { display: block; height: 100%; background: linear-gradient(90deg, #a78bfa, #8b5cf6); }
.ogh-tag { display: inline-block; padding: .12rem .4rem; border-radius: .5rem; font-size: .68rem; }
.ogh-tag.s1 { background: #fff7ed; color: #d97706; }
.ogh-tag.s2 { background: #eff6ff; color: #2563eb; }
.ogh-tag.s3 { background: #f3f4f6; color: var(--muted); }
.ogh-tag.s4 { background: #f0fdf4; color: var(--green); }
.ogh-logbox {
  background: #111827; color: #a7f3d0; font-family: Consolas, Menlo, monospace;
  font-size: .72rem; border-radius: 10px; padding: .6rem .7rem; max-height: 13rem;
  overflow-y: auto; line-height: 1.65;
}
.ogh-logbox .t { color: #6b7280; }
.ogh-logbox .hl { color: #6ee7b7; }

/* ---------- 统计卡网格（我的订单） ---------- */
.ogh-stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .7rem .7rem 0; }
.ogh-stat-card { background: #fff; border: 1px solid #eef2f0; border-radius: 14px; padding: .7rem .3rem .75rem; text-align: center; box-shadow: 0 2px 8px rgba(15, 23, 42, .05); }
.ogh-stat-card-v { font-size: 1.25rem; font-weight: 800; color: #111827; margin-top: .2rem; line-height: 1.2; }
.ogh-stat-card-v-green { color: #8b5cf6; }

/* ---------- 页面主卡（工作台风格统一） ---------- */
.ogh-card { background: #fff; border-radius: 16px; padding: .9rem; margin: 0 .7rem .7rem; box-shadow: 0 2px 10px rgba(15, 23, 42, .05); border: 1px solid #eef2f0; }

/* ---------- 桌面端稍宽 ---------- */
@media (min-width: 720px) {
  body { font-size: 15px; }
  .ogh-list-wrap { padding: .8rem 1.2rem 1rem; max-width: 52rem; margin: 0 auto; }
  .ogh-m-filter { padding-left: 1.2rem; padding-right: 1.2rem; }
  .ogh-m-filter { max-width: none; }
  .ogh-item-price { font-size: 1.25rem; }
  .ogh-tabbar { max-width: 52rem; left: 50%; transform: translateX(-50%); border-radius: 16px; border: 1px solid #e9efec; bottom: .45rem; }
}
