/* 橙白商务极简设计系统 */
:root {
  --brand: #FF6A00;
  --brand-soft: #FFF7F0;
  --brand-line: #FFD9B3;
  --brand-press: #E55F00;
  --surface: #FFFFFF;
  --surface-2: #F7F7F7;
  --bg: rgb(251, 249, 245);
  --ink: #1C1B19;
  --ink-2: #4A4A4A;
  --ink-3: #8A8A8A;
  --line: #EEEEEE;
  --line-strong: #DEDEDE;
  --danger: #FF4D4F;
  --ok: #52C41A;
  --warn: #FAAD14;
  --shadow-sm: 0 2px 8px rgba(28, 27, 25, 0.04);
  --shadow-md: 0 4px 16px rgba(28, 27, 25, 0.08);
  --shadow-brand: 0 4px 14px rgba(255, 106, 0, 0.25);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --appbar-h: 56px;
  --tabbar-h: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  max-height: 812px;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.appbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--appbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 12px;
  z-index: 30;
}
.appbar .back, .appbar .action, .appbar .spacer {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
}
.appbar .back svg, .appbar .action svg { width: 20px; height: 20px; }
.appbar .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  max-width: calc(100% - 96px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  min-height: var(--tabbar-h);
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 30;
  padding-bottom: var(--safe-bottom);
  box-sizing: border-box;
}
.tab {
  flex: 1;
  height: var(--tabbar-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.2s;
}
.tab svg { width: 22px; height: 22px; margin-bottom: 2px; }
.tab.active { color: var(--brand); }
/* 游客模式：隐藏工作台/我的 tab（内联兜底样式用 !important，这里需同权重覆盖） */
#tabbar.tabbar .tab.guest-hide { display: none !important; }

.view {
  position: absolute;
  top: var(--appbar-h);
  bottom: calc(var(--tabbar-h) + var(--safe-bottom));
  left: 0;
  right: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 16px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.view::-webkit-scrollbar { display: none; }
.view.no-tab {
  bottom: 0;
  /* 无 TabBar 的二级页：底部留出安全区，保证最后一个元素完整可见、可滚动到最底 */
  padding-bottom: calc(28px + var(--safe-bottom));
}

/* 排版 */
.tiny { font-size: 12px; color: var(--ink-3); }
.label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.strong { font-size: 15px; font-weight: 700; color: var(--ink); }

.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; }

.section-gap { margin-top: 18px; }
.h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.h2 .ln { width: 4px; height: 16px; background: var(--brand); border-radius: 2px; }

/* 卡片与列表 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.list { display: flex; flex-direction: column; gap: 10px; }

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.tile:active { transform: scale(0.99); border-color: var(--brand-line); box-shadow: var(--shadow-md); }
.tile .meta { flex: 1; min-width: 0; }
.tile .name { font-size: 15px; font-weight: 700; color: var(--ink); }
.tile .sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.tile .chev { color: var(--ink-3); display: grid; place-items: center; }

.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty .ic { font-size: 36px; margin-bottom: 8px; }

/* 金额、头像、标签 */
.amount { color: var(--brand); font-weight: 800; }
.amount .cur { font-size: 0.75em; margin-right: 2px; }

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.avatar.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
}
.tag.brand { background: var(--brand-soft); color: var(--brand); }
.tag.ok { background: #E6F7E6; color: var(--ok); }
.tag.warn { background: #FFF7E6; color: var(--warn); }

/* 按钮 */
.btn {
  appearance: none;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.985); background: var(--brand-press); }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand-line); }
.btn:disabled, .btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.sm { padding: 8px 12px; font-size: 13px; }

/* 搜索 */
.search {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--ink);
}
.search input::placeholder { color: var(--ink-3); }
.search svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }

/* Banner */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--brand);
}
.banner .track { display: flex; transition: transform 0.3s var(--ease); }
.banner .slide {
  min-width: 100%;
  padding: 18px 16px;
  color: #fff;
}
/* 图片型 banner（后台 banner 管理下发）：铺满轮播容器 */
.banner .slide.img-slide { padding: 0; }
.banner .slide.img-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner .badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--r-pill);
  font-size: 11px;
  margin-bottom: 8px;
}
.banner .t { font-size: 18px; font-weight: 800; }
.banner .d { font-size: 12px; opacity: 0.9; margin-top: 4px; }
.banner .dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.banner .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.banner .dots i.on { background: #fff; }

/* 首页公告条（后台「运营活动-首页公告」下发；无生效公告时整块不渲染） */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 12px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-md);
}
.notice-bar .nb-ic { display: flex; color: var(--brand); flex-shrink: 0; }
.notice-bar .nb-txt {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}
.nb-track { display: inline-flex; white-space: nowrap; }
.nb-track.rolling { animation: nb-marquee 18s linear infinite; }
@keyframes nb-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 数据总览 */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.stat .k { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; }
.stat .v { margin-top: 8px; }
.stat .s { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

/* 快捷入口 */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.entry-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.entry-card:active { transform: scale(0.985); border-color: var(--brand-line); box-shadow: var(--shadow-md); }
.entry-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #FFF7F0; color: var(--brand); }
.entry-ic svg { width: 20px; height: 20px; }
.entry-num { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-top: 12px; color: var(--ink); }
.entry-label { font-size: 14px; font-weight: 700; margin-top: 4px; color: var(--ink); }
.entry-foot { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.entry-foot svg { width: 14px; height: 14px; color: var(--ink-3); }

/* 筛选 chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--danger); margin-left: 2px; }
.hint-inline { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--brand-line); }
.field textarea { min-height: 90px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
/* 输入框内嵌单位后缀（如 团购/外卖订单基点 的 %） */
.input-suffix { position: relative; }
.input-suffix input { padding-right: 38px; }
.input-suffix .suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--ink-3); pointer-events: none; }
.field .err { font-size: 12px; color: var(--danger); margin-top: 6px; }

.select-wrap { position: relative; width: 100%; }
.select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.select:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
.select:disabled { opacity: 0.6; background: var(--surface-2); cursor: not-allowed; }
.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  pointer-events: none;
}

/* 图片上传 */
.uploader { display: inline-block; vertical-align: top; }
.upload-btn {
  width: 84px;
  height: 84px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--ink-3);
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.2s var(--ease), background 0.15s;
}
.upload-btn svg { width: 24px; height: 24px; color: var(--brand); }
.upload-btn span { font-size: 12px; }
.upload-btn:active { border-color: var(--brand); background: var(--brand-soft); }
.upload-preview {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(28, 27, 25, 0.65);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.upload-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* 悬浮按钮 */
.fab-wrap { position: sticky; bottom: 14px; display: flex; justify-content: flex-end; pointer-events: none; z-index: 25; margin-top: 14px; }
.fab {
  pointer-events: auto;
  background: var(--brand);
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-brand);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: transform 0.15s var(--ease), background 0.2s, opacity 0.2s;
}
.fab:active { transform: scale(0.975); background: var(--brand-press); }

/* 邀请弹层 */
.invite { text-align: center; }
.invite-poster { width: 100%; border-radius: 14px; display: block; box-shadow: var(--shadow-md); }
.invite-code { margin-top: 14px; }
.invite-code .code { font-size: 22px; font-weight: 800; letter-spacing: 0.04em; margin-top: 4px; }

/* 底部弹层 */
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
  display: none;
}
/* open 态显示（ui.openSheet 依赖；此前缺失该规则导致所有底部弹层无法显示） */
.sheet-mask.open {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 420px; /* 与 .phone 容器同宽，桌面宽屏下不超出手机框 */
  margin: 0 auto;
  background: #fff;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  max-height: 80%;
  overflow-y: auto;
}
.sheet.tall { max-height: 94%; }
.sheet .grab { width: 40px; height: 4px; background: var(--line); border-radius: 2px; margin: 10px auto; }
.sheet-title { padding: 16px; font-weight: 800; }
.sheet-body { padding: 0 16px 20px; }

/* 居中提示弹窗（小型对话框，屏幕中间展示，z-index 高于底部弹层与 toast） */
.center-alert-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.center-alert-mask.open { opacity: 1; }
.center-alert {
  width: 72%;
  max-width: 280px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px 16px;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.2s;
}
.center-alert-mask.open .center-alert { transform: scale(1); }
.center-alert-title { font-weight: 800; font-size: 16px; color: var(--ink); }
.center-alert-body { margin: 12px 0 18px; }
.center-alert-ok { width: 100%; border-radius: 22px; }
.center-alert-actions { display: flex; gap: 10px; }
.center-alert-actions .center-alert-ok { width: auto; }

/* Toast */
.toast-wrap {
  position: fixed;
  top: calc(var(--appbar-h) + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
  max-width: 80%;
}

/* 加载更多 */
.load-more { text-align: center; padding: 14px 0; font-size: 13px; color: var(--ink-3); }

/* 进度条 */
.bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

/* 列表项 li（用于卡片内明细） */
.li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: none; }
.li .meta { flex: 1; min-width: 0; }
.li .t { font-size: 14px; font-weight: 700; color: var(--ink); }
.li .s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.li .amt { text-align: right; flex-shrink: 0; }
/* 收益明细金额正负着色（含符号）：+红 / -绿 */
.li .amt.pos { color: #E02020; }
.li .amt.neg { color: #0A9E4A; }
/* amount() 内层 <span class="amount"> 自带品牌橙色，会盖过父级继承色，需强制回随父级 */
.li .amt.pos .amount,
.li .amt.neg .amount { color: inherit; }
.li .tag { flex-shrink: 0; }

/* Hero 卡片 */
.hero {
  background: linear-gradient(135deg, var(--brand), #1C1B19);
  color: #fff;
  padding: 20px 16px;
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.hero .hi { font-size: 13px; opacity: 0.85; }
.hero .nm { font-size: 24px; font-weight: 800; margin-top: 4px; }
.hero .lv { margin-top: 8px; }
.hero .pill {
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--r-pill);
  font-size: 12px;
}
.hero .share {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  cursor: pointer;
}

/* 余额卡片（SVG 背景风格） */
.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface) url('/assets/images/bg-balance-card.svg?v=42') center/cover no-repeat;
  border: none;
  border-radius: var(--r-md);
  padding: 20px 16px;
}
.balance-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.balance-card .hi { font-size: 13px; color: var(--ink-2); }
.balance-card .nm { font-size: 28px; font-weight: 800; color: var(--brand); }
.balance-card .lv { margin-top: 2px; }
.balance-card .pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--ink-2);
}
.withdraw-btn {
  flex-shrink: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}

/* 资质照片 */
.img-stack { margin-top: 10px; }
.img-group { margin-bottom: 14px; }
.img-group .tiny { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.img-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.img-row::-webkit-scrollbar { display: none; }
.thumb {
  width: 84px;
  height: 84px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* FAQ */
.faq-ic { transition: transform 0.2s; }
.faq-a { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }

/* 骨架屏 */
.sk {
  background: linear-gradient(90deg, var(--surface-2) 25%, #EBEBEB 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  border-radius: var(--r-sm);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 产品卡片 */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.product-card:active { transform: scale(0.99); border-color: var(--brand-line); box-shadow: var(--shadow-md); }
.product-thumb { width: 100%; aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb .pt-level { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: 2px; text-shadow: 0 1px 2px rgba(0,0,0,0.18); }
.product-body { padding: 14px 16px; }
.product-name { font-size: 16px; font-weight: 800; color: var(--ink); }
.product-intro { font-size: 13px; font-weight: 600; color: var(--brand); margin-top: 6px; }
.product-desc { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.55; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.product-price .amount { font-size: 22px; }
/* 已入驻数量标签 */
.tag.join { background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
/* 详情页封面 */
.product-hero-cover { width: 100%; aspect-ratio: 16 / 10; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; border-radius: var(--r-md); }
.product-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-hero-cover .pt-level { font-size: 34px; font-weight: 800; color: #fff; letter-spacing: 3px; text-shadow: 0 1px 2px rgba(0,0,0,0.18); }
/* 详情页详情图画廊 */
.product-detail-gallery { display: grid; grid-template-columns: 1fr; gap: 10px; }
.product-detail-gallery img { width: 100%; display: block; border-radius: var(--r-sm); border: 1px solid var(--line); }
/* 产品详情页底部悬浮操作栏：分享 / 我要入驻
   用 sticky 而非 fixed：fixed 相对视口定位，桌面宽屏下会铺满窗口超出 .phone 容器；
   sticky 在 .view 滚动容器内贴底，自动继承 .phone 限宽（420px）与垂直边界 */
.view.no-tab.has-actionbar { padding-bottom: 0; }
.pd-actionbar {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 10px;
  /* 负 margin 抵消 .view 的 16px 左右内边距，实现通栏 */
  margin: 0 -16px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(28, 27, 25, 0.06);
}
.pd-actionbar .btn { flex: 1; }
.pd-actionbar .btn.ghost { flex: 0 0 30%; } /* 分享按钮固定窄占比，主按钮（我要入驻/提交）占剩余宽度 */
.pd-actionbar .btn .amount { color: #fff; } /* 提交按钮上的价格保持白色 */

/* 产品邀请页：纯色邀请图（占位）+ 二维码 */
.pdp-invite-poster {
  border-radius: var(--r-md);
  background: linear-gradient(160deg, #FF8A3D 0%, var(--brand) 42%, #E04E00 100%);
  padding: 26px 20px 20px;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.pdp-invite-head { text-align: center; }
.pdp-invite-brand { font-size: 12px; letter-spacing: 4px; opacity: 0.85; }
.pdp-invite-name { font-size: 22px; font-weight: 800; margin-top: 10px; letter-spacing: 1px; }
.pdp-invite-price { font-size: 30px; font-weight: 800; margin-top: 6px; }
.pdp-invite-price .amount { color: #fff; } /* .amount 默认品牌橙，在橙色海报上需强制白 */
.pdp-invite-price span { font-size: 12px; font-weight: 500; opacity: 0.8; margin-left: 4px; }
.pdp-invite-qr {
  width: 200px;
  margin: 18px auto 0;
  background: #fff;
  border-radius: var(--r-sm);
  padding: 12px 12px 10px;
  text-align: center;
}
.pdp-invite-qr svg { width: 100%; height: auto; display: block; }
.pdp-invite-qr-tip { font-size: 11px; color: var(--ink-3); margin-top: 8px; }
.pdp-invite-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.pdp-invite-code { font-size: 11px; color: rgba(255,255,255,0.92); }
.product-detail-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 12px; }
.product-detail-label:first-child { margin-top: 0; }
.product-detail-text { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.55; }

/* 我的页面 */
.me-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.me-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.me-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1C1B19;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.me-info { flex: 1; min-width: 0; }
.me-name { font-size: 17px; font-weight: 800; color: var(--ink); }
.me-level {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.me-invite {
  appearance: none;
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-pill);
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s var(--ease);
}
.me-invite svg { width: 14px; height: 14px; }
.me-invite:active { transform: scale(0.97); background: var(--brand-soft); }

.me-entries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 4px;
  gap: 4px;
}
.me-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 0;
  transition: transform 0.15s var(--ease);
}
.me-entry:active { transform: scale(0.96); }
.me-entry-ic {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.me-entry-ic svg { width: 24px; height: 24px; }
.me-entry-label { font-size: 13px; font-weight: 600; color: var(--ink); }

.me-menu-item { transition: background 0.15s; border-radius: var(--r-sm); }
.me-menu-item:active { background: var(--surface-2); }

.invite-page { padding: 12px 16px 20px; }
.invite-poster-wrap {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.invite-poster {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: default;
}
.invite-watermark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  color: #fff;
  text-align: center;
}
.invite-code-label { font-size: 12px; opacity: 0.9; }
.invite-code { font-size: 22px; font-weight: 800; letter-spacing: 1px; margin-top: 4px; }
.invite-actions { margin-top: 16px; display: flex; gap: 10px; }
.invite-actions .btn { flex: 1; }
.poster-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--ink-3);
  background: var(--surface-2);
  z-index: 1;
}

/* ============ 登录页（服务商账号 / 游客模式） ============ */
.login-mode .appbar,
.login-mode .tabbar { display: none !important; }
.login-mode .view { top: 0 !important; bottom: 0 !important; padding: 0 !important; }

.login-page {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 106, 0, 0.20), rgba(255, 251, 245, 0.62));
}
.login-card {
  position: relative;
  z-index: 2;
  width: 84%;
  max-width: 340px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 22px 22px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.login-logo {
  width: 56px; height: 56px;
  margin: 0 auto;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 26px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: var(--shadow-brand);
}
.login-title { margin-top: 14px; font-size: 20px; font-weight: 700; color: var(--ink); }
.login-sub { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.login-form { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.login-field {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.login-field:focus-within { border-color: var(--brand-line); background: #fff; }
.login-ic { color: var(--brand); display: flex; flex-shrink: 0; }
.login-field input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 15px; color: var(--ink); height: 100%;
}
.login-err { color: var(--danger); font-size: 12px; min-height: 16px; }
.login-btn {
  height: 46px; border: none; border-radius: 10px;
  background: var(--brand); color: #fff;
  font-size: 16px; font-weight: 600; letter-spacing: 2px;
  cursor: pointer; margin-top: 2px;
}
.login-btn:disabled { opacity: 0.6; cursor: default; }
.login-btn:active { background: var(--brand-press); }
.login-guest {
  margin-top: 14px; border: none; background: transparent;
  color: var(--brand); font-size: 14px; cursor: pointer;
  text-decoration: underline;
}
.login-tip { margin-top: 10px; font-size: 11px; color: var(--ink-3); line-height: 1.5; }

/* ============ 游客模式浮动条 ============ */
.guest-bar {
  position: fixed;
  top: 8px; left: 50%; transform: translateX(-50%);
  z-index: 200;
  display: flex; align-items: center; gap: 8px;
  background: rgba(28, 27, 25, 0.78);
  color: #fff; font-size: 12px;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.guest-bar-action { color: #FFD9B3; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* 收益明细筛选卡（团购/外卖、流水佣金明细页） */
.earn-filter { padding: 12px 16px 10px; display: grid; gap: 10px; }
.earn-filter .ef-dates { display: flex; align-items: center; gap: 6px; }
.earn-filter .ef-sep { font-size: 12px; color: var(--ink-3); flex: none; }
.earn-filter .ef-date {
  flex: 1; min-width: 0; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink);
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.earn-filter .ef-date:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
.earn-filter .select { height: 40px; font-size: 13px; }
/* 明细标题行右侧汇总：共X笔，计¥XX.XX（随筛选实时联动） */
.h2 .earn-result { margin-left: auto; font-weight: 600; white-space: nowrap; }
.h2 .earn-result .amount { font-size: 13px; }
