/*
 * 收纳师小程序 HTML 原型
 * 页面宽度与层次对齐 CPS 分销线上稿（Tailwind max-w-md = 448px）
 * 配色参考：电商/个人中心风 — 浅冷灰底、红橙主色渐变 CTA、紫罗兰头像底、深色会员卡
 */
:root {
  --primary: #ff4b3e;
  --primary-dark: #ff3a31;
  --primary-light: #ff6b5d;
  --primary-soft: #fff0ee;
  --gradient-top-start: #fafcfd;
  --page-bg: #f5f7f9;
  --canvas-bg: #f5f7f9;
  --shell-max: 448px;
  /* 金额、优惠、强调数字（与主色同系） */
  --price: #ff4b3e;
  --card: #ffffff;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 20px;
  --text: #222222;
  --text-2: #666666;
  --text-3: #999999;
  --placeholder: #cccccc;
  --border: #eeeeee;
  --tabbar-border: #e8eaed;
  --split: #eeeeee;
  --success: #52c41a;
  --success-bg: rgba(82, 196, 26, 0.1);
  --success-border: rgba(82, 196, 26, 0.2);
  --warn: #ff9500;
  --warn-bg: rgba(255, 149, 0, 0.1);
  --warn-border: rgba(255, 149, 0, 0.2);
  --tabbar-h: 64px;
  --notice-bg: #fff8f0;
  --notice-border: #f0e6d8;
  --space-page: 16px;
  /* 图示：默认头像浅紫底 */
  --avatar-accent: #a896ff;
  /* 图示：会员/资产深色卡 */
  --member-card-start: #2d2e37;
  --member-card-end: #4a4c59;
  /* 主按钮与图示「签到」类横向渐变 */
  --cta-gradient: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-dark) 100%);

  /* Typography tokens：同类属性字号全局统一 */
  --fs-title-lg: 18px;   /* Tab 页标题 */
  --fs-title-md: 16px;   /* 子页标题 */
  --fs-body: 14px;       /* 正文 */
  --fs-body-sm: 13px;    /* 辅助正文 */
  --fs-caption: 12px;    /* 说明/时间 */
  --fs-mini: 11px;       /* 更弱的说明 */
  --fs-tag: 12px;        /* 标签/徽标 */
  --fs-badge: 10px;      /* 小徽标 */
  --fs-amount-lg: 26px;  /* 金额/资产大数 */
  --fs-amount-xl: 28px;  /* 页面资产大数（少用） */
  --fs-nav-filter: 15px; /* 顶部导航筛选/Tab 文案 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.organizer-app {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--canvas-bg);
  color: var(--text);
  min-height: 100vh;
  margin: 0;
}

.preview-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.phone-shell {
  width: 100%;
  max-width: var(--shell-max);
  min-height: 100vh;
  position: relative;
  margin: 0 auto;
  background: var(--page-bg);
}

.frame {
  width: 100%;
  min-height: calc(100vh - var(--tabbar-h));
  background: var(--page-bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding-bottom: 16px;
}

.frame--grab {
  padding-bottom: 96px;
}

/* Tab 主页（index）：壳固定视口高，主内容在 #main-scroll 内滚动，避免收入/我的等页整页无法下滑 */
.phone-shell--tab-home {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

.phone-shell--tab-home .frame#main-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(24px + var(--tabbar-h) + env(safe-area-inset-bottom, 0));
}

.phone-shell--tab-home .frame#main-scroll.frame--grab {
  padding-bottom: calc(96px + var(--tabbar-h) + env(safe-area-inset-bottom, 0));
}

.topbar {
  background: var(--card);
  padding: 16px 16px 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--split);
}

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

/* 标题居中 + 右侧操作（任务/收入/消息/我的） */
.topbar-row--balanced {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
}

.topbar-row--balanced .topbar-placeholder {
  width: 80px;
}

.topbar-row--balanced .topbar-title {
  text-align: center;
  justify-self: center;
  grid-column: 2;
}

.topbar-row--balanced .topbar-actions {
  grid-column: 3;
  justify-self: end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: var(--card);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf50;
}

.topbar-title {
  font-size: var(--fs-title-lg);
  font-weight: 600;
  color: var(--text);
}

.topbar-actions {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}

/* 与 CPS 顶栏 pill 操作组：px-3 py-1.5 */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 6px 12px;
  border: none;
  background: var(--card);
  cursor: pointer;
  color: #333333;
}

.icon-btn + .icon-btn {
  border-left: 1px solid var(--border);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.date-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px 8px;
}

.date-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-body);
  font-weight: 500;
  border: none;
  background: var(--card);
  color: var(--text);
}

.date-tab.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.date-tab .num {
  font-size: 12px;
  opacity: 0.85;
}

/* P4 抢单顶栏：左（标题 + 状态 pill）+ 右胶囊双按钮 */
.grab-panel-hero {
  padding-bottom: 10px;
  border-bottom: none;
}

.grab-panel-hero__title-block {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.grab-panel-hero__title-block .status-pill {
  flex-shrink: 0;
}

/* —— P5 任务 · 布局对齐 CPS「数据中心」data-page（https://cps-miniapp.pages.dev） —— */
.task-page {
  min-height: 100%;
}

.task-page__hero {
  background: var(--card);
  padding: 16px 16px 0;
  position: sticky;
  top: 0;
  z-index: 12;
}

.task-page__hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  margin-bottom: 8px;
}

/* 与数据中心一致：均分 + 底 3px 主色条 */
.task-page__main-tabs {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  border-bottom: none;
}

.task-page__tab {
  flex: 1;
  min-width: 0;
  padding: 10px 8px 12px;
  border: none;
  background: none;
  font-size: var(--fs-nav-filter);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.task-page__tab.is-active {
  color: var(--primary);
  font-weight: 600;
}

.task-page__tab.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  background: var(--primary);
  border-radius: 999px;
}

.task-page__body {
  background: var(--page-bg);
  padding-bottom: 8px;
}

.task-page__panel.is-collapsed {
  display: none !important;
}

/* 横向胶囊筛选（同 LeadsTab） */
.data-pills {
  display: flex;
  gap: 8px;
  padding: 12px 16px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.data-pills::-webkit-scrollbar {
  display: none;
}

.data-pill {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: var(--fs-body);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text);
  background: var(--card);
  transition: background 0.15s, color 0.15s;
}

.data-pill.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

/* 任务页：筛选胶囊与卡片同宽，并在容器内等分 */
.task-page .data-pills {
  overflow-x: hidden;
  padding: 12px 16px 8px;
}

.task-page .data-pill {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 0;
  text-align: center;
}

/* 单页等分胶囊：用于内页顶部筛选条（416px 版心） */
.data-pills--equal {
  overflow-x: hidden;
  padding: 12px 16px 8px;
}

.data-pills--equal .data-pill {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 0;
  text-align: center;
}

.data-card-list {
  padding: 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CPS 线索/订单列表白卡片：头编号+状态 / KV 体 / 脚时间+详情 */
.data-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* 统一信息卡片版心：在 16px 左右内边距容器内为 416px */
.data-card,
.form-card,
.menu-group,
.income-tx-card,
.detail-main-card,
.profile-cps__data,
.profile-cps__quick,
.income-trend-card,
.asset-card {
  width: 100%;
}

.data-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.data-card__no {
  font-size: var(--fs-body);
  color: var(--text);
  line-height: 1.35;
}

.data-card__no strong {
  font-weight: 600;
}

.data-card__tag {
  flex-shrink: 0;
  font-size: var(--fs-caption);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.data-card__tag--ok {
  background: rgba(82, 196, 26, 0.1);
  color: #2e7d32;
  border-color: rgba(82, 196, 26, 0.2);
}

.data-card__tag--wait {
  background: rgba(255, 152, 0, 0.1);
  color: #ff8f00;
  border-color: rgba(255, 152, 0, 0.2);
}

/* 任务状态「抢单」：与抢单池/任务列表 data-card__tag 一致 */
.data-card__tag--grab {
  background: rgba(255, 75, 62, 0.1);
  color: var(--primary-dark);
  border-color: rgba(255, 75, 62, 0.25);
}

.data-card__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.data-card__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-body);
  line-height: 1.45;
}

.data-card__row-label {
  width: 80px;
  flex-shrink: 0;
  color: var(--text-3);
}

.data-card__row-value {
  flex: 1;
  min-width: 0;
  color: var(--text);
}

.data-card__row-value--strong {
  font-weight: 600;
}

.data-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.data-card__time {
  font-size: var(--fs-caption);
  color: var(--text-3);
}

.data-card__meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(255, 75, 62, 0.18);
  white-space: nowrap;
}

.grab-card .data-card__meta-tag {
  border: none;
}

.data-card__meta-tag svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.data-card__assignees {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mini-avatars {
  display: inline-flex;
  align-items: center;
  padding-left: 6px;
}

.mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-left: -6px;
}

.mini-avatar--a {
  background: linear-gradient(180deg, #ff6b5d 0%, #ff3a31 100%);
}

.mini-avatar--b {
  background: linear-gradient(180deg, #a896ff 0%, #7b61ff 100%);
}

.mini-avatar--c {
  background: linear-gradient(180deg, #5ac8fa 0%, #1890ff 100%);
}

.data-card__assignees-text {
  font-size: var(--fs-caption);
  color: var(--text-2);
  font-weight: 600;
  white-space: nowrap;
}

.data-card__detail {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: none;
  background: none;
  padding: 0;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
}

.data-card__detail svg {
  width: 16px;
  height: 16px;
}

/* —— 抢单池卡片：参考图示的分区式布局（仅 grab-card 使用） —— */
.grab-card {
  padding: 14px 16px 16px;
}

.grab-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.grab-card__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.grab-card__sub {
  margin-top: 6px;
  font-size: var(--fs-caption);
  color: var(--text-3);
  font-weight: 600;
}

.grab-card__sub strong {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.grab-card__rows {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.grab-card__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.grab-card__icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 75, 62, 0.10);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.grab-card__icon svg {
  width: 15px;
  height: 15px;
}

.grab-card__row-main {
  min-width: 0;
  flex: 1;
}

.grab-card__row-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  line-height: 1.2;
}

.grab-card__row-value {
  margin-top: 2px;
  font-size: var(--fs-body);
  color: var(--text);
  line-height: 1.45;
}

/* 任务列表卡片与抢单池保持同一套 grab-card 视觉 */

.grab-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.grab-card__teamline {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.grab-card__addr-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.grab-card__addr-icon svg {
  width: 16px;
  height: 16px;
}

.grab-card__addr-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grab-card__teamtext {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 700;
  white-space: nowrap;
}

.grab-card__cta {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--cta-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 75, 62, 0.18);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.grab-card__cta-main {
  line-height: 1;
}

.grab-card__cta-sub {
  line-height: 1;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.16);
}

.grab-card__cta-sub--need {
  background: rgba(255, 243, 224, 0.95);
  color: #d46b08;
}

.grab-card__cta-sub--full {
  background: rgba(232, 245, 233, 0.95);
  color: #2e7d32;
}

.grab-card__cta:active {
  filter: brightness(0.96);
}

/* 抢单池底部：距离/里程标签（与上方行内容对齐） */
.grab-card__teamline .data-card__meta-tag {
  background: transparent;
  border: none;
  padding: 0;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* P5 / P11 下划线 Tab */
.line-tabs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--split);
  padding: 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.line-tabs::-webkit-scrollbar {
  display: none;
}

.line-tabs .line-tab {
  flex: 1;
  min-width: 64px;
  padding: 12px 6px 10px;
  border: none;
  background: none;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}

.line-tabs .line-tab.active {
  color: var(--primary);
  font-weight: 600;
}

.line-tabs .line-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.filter-strip {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-strip::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
}

.chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.list {
  padding: 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list--grab {
  padding-top: 20px;
  padding-bottom: 100px;
}

.task-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.card-title {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.tag {
  flex-shrink: 0;
  font-size: var(--fs-tag);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--success-border);
  color: var(--success);
  background: var(--success-bg);
}

.tag-outline-primary {
  border-color: rgba(255, 75, 62, 0.28);
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.tag-outline-neutral {
  border-color: var(--border);
  color: var(--text-2);
  background: #fafafa;
}

/* 任务状态标签：每张任务卡只保留一个状态 */
.tag-status-grab {
  border-color: rgba(255, 75, 62, 0.28);
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.tag-status-assign {
  border-color: rgba(214, 161, 40, 0.55);
  color: #7a4e00;
  background: linear-gradient(180deg, #fff6da 0%, #ffe7a8 100%);
}

.tag-status-transfer {
  border-color: rgba(245, 158, 11, 0.35);
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
}

.tag-status-bind {
  border-color: rgba(99, 102, 241, 0.28);
  color: #3730a3;
  background: rgba(99, 102, 241, 0.12);
}

.tag-outline-warn {
  border-color: var(--warn-border);
  color: var(--warn);
  background: var(--warn-bg);
}

.tag-assign {
  border-color: var(--warn-border);
  color: var(--warn);
  background: var(--warn-bg);
}

.chevron {
  color: var(--text-3);
  flex-shrink: 0;
  margin-left: 4px;
}

.row-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-body);
  color: var(--text-2);
  margin-bottom: 14px;
}

.row-time svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.timeline {
  position: relative;
  padding-left: 18px;
  margin-bottom: 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 0;
  border-left: 1px dashed var(--split);
}

.tl-item {
  position: relative;
  padding-bottom: 10px;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--text);
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-dot {
  position: absolute;
  left: -18px;
  top: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--card);
}

.tl-dot.secondary {
  background: var(--card);
  border-color: var(--primary);
}

.tl-label {
  display: inline-block;
  font-size: 11px;
  color: var(--primary);
  margin-right: 4px;
  font-weight: 600;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-foot--split {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-caption);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--page-bg);
  color: var(--text-2);
}

/* P5 清单：脚区浅底（主色弱对比） */
.meta-pill--brand {
  background: var(--primary-soft);
  color: var(--primary);
}

.meta-pill svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.team-progress {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.team-progress--grab {
  margin-top: 12px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(255, 75, 62, 0.14) !important;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 75, 62, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
}

.team-progress--grab .team-progress-head {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-2);
}

.team-progress--grab .team-progress-head--avatars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-progress--grab .team-progress-head--avatars .mini-avatars {
  padding-left: 10px;
}

.team-progress--grab .team-progress-head strong {
  color: var(--primary-dark);
  font-weight: 700;
}

/* 抢单池：头像做“照片占位”风格（仅此处生效） */
.team-progress--grab .mini-avatar {
  width: 28px;
  height: 28px;
  margin-left: -10px;
  border-width: 2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
  font-size: 0; /* 隐藏字母，呈现头像占位 */
  position: relative;
  overflow: hidden;
}

.team-progress--grab .mini-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 42%),
    radial-gradient(circle at 70% 85%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 48%);
  pointer-events: none;
}

.team-progress--grab .team-progress-head--avatars span:last-child {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}

.team-progress--grab .progress-bar {
  height: 5px;
  background: rgba(255, 75, 62, 0.10);
}

.team-progress--grab .progress-bar > div {
  background: linear-gradient(90deg, rgba(255, 75, 62, 0.85) 0%, rgba(255, 58, 49, 1) 100%);
}

.team-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-caption);
  color: var(--text-2);
  margin-bottom: 6px;
}

.team-progress-head strong {
  color: var(--text);
}

.team-progress__summary {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
  font-weight: 400;
  padding-right: 8px;
}

.team-progress-hint {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.55;
  margin-top: 10px;
}

.team-progress-hint a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  overflow: hidden;
}

.progress-bar > div {
  height: 100%;
  width: 66%;
  border-radius: 999px;
  background: var(--cta-gradient);
}

.float-bar-wrap {
  position: absolute;
  bottom: var(--tabbar-h);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0 16px;
  pointer-events: none;
}

.float-bar-wrap.is-hidden {
  display: none;
}

.float-bar-wrap .float-bar {
  pointer-events: auto;
}

.float-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbe6;
  border-radius: var(--radius);
  padding: 8px 12px;
  border: none;
  color: var(--text);
  font-size: var(--fs-body-sm);
  line-height: 1.35;
  margin: 12px 0;
}

/* 定位浮条：刷新按钮更轻量 */
.float-bar .refresh-fab {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-2);
}

.float-bar .refresh-fab svg {
  width: 16px;
  height: 16px;
}

.float-bar .refresh-fab:active {
  filter: none;
  background: rgba(0, 0, 0, 0.03);
}

.float-bar .loc-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--page-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.float-bar .addr {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  line-height: 1.35;
}

.float-bar .addr small {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.refresh-fab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--cta-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.refresh-fab:active {
  filter: brightness(0.96);
}

/* —— P11 收入 —— */
.asset-card {
  margin: 12px 16px;
  padding: 20px 16px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.asset-label {
  font-size: var(--fs-body-sm);
  color: var(--text-2);
}

.asset-amount {
  font-size: var(--fs-amount-xl);
  font-weight: 700;
  color: var(--text);
  margin-top: 6px;
  letter-spacing: -0.02em;
}

.asset-row {
  display: flex;
  gap: 32px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--split);
}

.asset-row > div span:first-child {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 4px;
}

.asset-row > div span:last-child {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.quick-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 12px;
}

.quick-tile {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #fffbfb 0%, var(--primary-soft) 100%);
  border: 1px solid rgba(255, 75, 62, 0.18);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: center;
}

.recent-block {
  padding: 0 16px 8px;
}

.recent-title {
  font-size: var(--fs-body-sm);
  color: var(--text-3);
  margin-bottom: 8px;
  padding-left: 2px;
}

.recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.03);
  margin-bottom: 8px;
}

.recent-row .r-main {
  flex: 1;
  min-width: 0;
}

.recent-row .r-title {
  font-size: var(--fs-body);
  color: var(--text);
  font-weight: 500;
}

.recent-row .r-sub {
  font-size: var(--fs-caption);
  color: var(--text-3);
  margin-top: 4px;
}

.recent-row .r-amt {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--price);
  flex-shrink: 0;
  margin-left: 8px;
}

.recent-row .r-amt.is-sub {
  color: var(--success);
}

/* —— P11 收入 · 布局对齐 CPS「我的资产」wallet-detail-page —— */
.income-page {
  min-height: 100%;
}

.income-page__hero {
  background: var(--card);
  box-sizing: border-box;
  height: 108.5px;
  padding: 14px 16px 10px;
  position: sticky;
  top: 0;
  z-index: 12;
  border-bottom: none;
}

.income-page__body {
  padding-bottom: 20px;
}

/* 收入页资产大卡：与 profile-cps__asset 同系深色会员卡 */
.wallet-hero-card {
  margin: 12px 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--member-card-start) 0%, var(--member-card-end) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(45, 46, 55, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-hero-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wallet-hero-card__label {
  font-size: var(--fs-body);
  color: #fff;
  opacity: 0.95;
}

.wallet-hero-card__amount {
  margin-top: 4px;
  font-size: var(--fs-amount-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.wallet-hero-card__amount.is-masked {
  font-size: 24px;
  letter-spacing: 0.08em;
}

.wallet-hero-card__withdraw {
  flex-shrink: 0;
  margin-top: 20px;
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--cta-gradient);
  color: #fff;
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
}

.wallet-hero-card__withdraw:active {
  filter: brightness(0.96);
}

.wallet-hero-card__stats {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.wallet-hero-card__stat-label {
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.wallet-hero-card__stat-val {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wallet-hero-card__bank {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: var(--fs-body);
  font-weight: 500;
  cursor: pointer;
}

.wallet-hero-card__bank:active {
  background: rgba(255, 255, 255, 0.28);
}

.wallet-hero-card__bank svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* 近7日白卡 + 示意柱条 */
.income-trend-card {
  width: calc(100% - 32px);
  margin: 0 auto 12px;
  padding: 12px 16px 14px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.income-trend-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.income-trend-card__head h3 {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
}

.income-trend-card__legend {
  display: flex;
  gap: 12px;
  font-size: var(--fs-caption);
  color: var(--text-2);
}

.income-trend-card__legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.income-trend-card__legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.income-trend-card__legend i.dot-a {
  background: var(--primary);
}

.income-trend-card__legend i.dot-b {
  background: rgba(255, 149, 0, 0.9);
}

.income-trend-chart {
  height: 104px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: flex-end;
  column-gap: 8px;
  padding: 6px 0 4px;
  margin-bottom: 8px;
}

.income-trend-col {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100%;
}

.income-trend-bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  opacity: 0.85;
}

.income-trend-bar.is-move {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  opacity: 0.88;
}

.income-trend-bar.is-pure {
  background: linear-gradient(180deg, rgba(255, 149, 0, 0.85) 0%, rgba(255, 149, 0, 0.55) 100%);
  opacity: 0.78;
}

.income-trend-card__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 4px;
}

.income-trend-card__summary > div {
  text-align: center;
}

.income-trend-card__summary .lbl {
  display: block;
  margin-top: 2px;
}


.income-pill--filter {
  flex: 0 0 auto;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.income-pill--filter svg {
  width: 16px;
  height: 16px;
}

/* —— Bottom Sheet（筛选抽屉）—— */
.sheet.is-collapsed {
  display: none !important;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.sheet__panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--shell-max);
  background: var(--card);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.18);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  max-height: 78vh;
  display: flex;
  flex-direction: column;
}

.sheet--modal .sheet__panel {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  width: calc(100% - 56px);
  max-width: 392px;
  max-height: min(520px, 82vh);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.sheet__head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--split);
}

.sheet__title {
  text-align: center;
  font-size: var(--fs-body);
  font-weight: 650;
  color: var(--text);
}

.sheet__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  line-height: 36px;
}

.sheet__ghost {
  width: 36px;
  height: 36px;
}

.sheet__body {
  padding: 12px 16px 6px;
  overflow: auto;
}

.sheet__section + .sheet__section {
  margin-top: 14px;
}

.sheet__section-title {
  font-size: var(--fs-caption);
  color: var(--text-2);
  margin-bottom: 10px;
  font-weight: 600;
}

.sheet__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sheet__chips .chip {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: var(--fs-body-sm);
  cursor: pointer;
}

.sheet__chips .chip.is-active {
  border-color: rgba(255, 75, 62, 0.35);
  background: rgba(255, 75, 62, 0.10);
  color: #ff3a31;
  font-weight: 650;
}

.sheet__foot {
  padding: 10px 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 仅一个主按钮时居中（避免双列网格把按钮挤在左侧） */
.sheet__foot:has(> :only-child) {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* —— 成员明细（绑定收纳师）—— */
.member-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.member-card {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card);
  border: none;
  box-shadow: none;
  text-align: left;
}

button.member-card {
  cursor: pointer;
}

.member-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 750;
  color: #ffffff;
  background: linear-gradient(135deg, #8b7bff 0%, #b6abff 100%);
  box-shadow: 0 8px 22px rgba(139, 123, 255, 0.22);
  user-select: none;
}

.member-card__avatar--add {
  background: rgba(255, 75, 62, 0.10);
  color: var(--primary);
  box-shadow: none;
  border: none;
  font-size: 18px;
}

.member-card__main {
  min-width: 0;
}

.member-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.member-card__name {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-tag {
  flex: 0 0 auto;
  font-size: var(--fs-mini);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.65);
  font-weight: 650;
}

.member-tag--leader {
  background: rgba(255, 75, 62, 0.12);
  color: var(--primary);
}

.member-tag--hint {
  background: rgba(255, 149, 0, 0.12);
  color: #d56b00;
}

.member-card__meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-2);
  font-size: var(--fs-caption);
}

.member-card__meta strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.member-card__dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  flex: 0 0 auto;
}

.member-card__link {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.18);
}

.member-card__link:active {
  opacity: 0.8;
}

.member-card__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.member-status {
  font-size: var(--fs-mini);
  font-weight: 750;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.7);
}

.member-status--ok {
  border-color: rgba(82, 196, 26, 0.25);
  background: rgba(82, 196, 26, 0.10);
  color: #2f8f16;
}

.member-status--wait {
  border-color: rgba(255, 149, 0, 0.22);
  background: rgba(255, 149, 0, 0.10);
  color: #b35f00;
}

.member-card--add {
  background: linear-gradient(180deg, rgba(255, 75, 62, 0.06) 0%, rgba(255, 75, 62, 0.02) 100%);
}

.sheet-hint {
  font-size: var(--fs-caption);
  color: var(--text-2);
  margin: 2px 0 10px;
}

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

.partner-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
  cursor: pointer;
}

.partner-item input[type="radio"] {
  margin-top: 2px;
}

.partner-item__main {
  min-width: 0;
}

.partner-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.partner-item__name {
  font-size: var(--fs-body);
  font-weight: 750;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-item__badge {
  flex: 0 0 auto;
  font-size: var(--fs-mini);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 75, 62, 0.10);
  color: var(--primary);
  font-weight: 700;
}

.partner-item__sub {
  margin-top: 4px;
  font-size: var(--fs-caption);
  color: var(--text-2);
}

.income-trend-card__summary .num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.income-trend-card__summary .lbl {
  font-size: var(--fs-mini);
  color: var(--text-3);
  margin-top: 2px;
}

.income-trend-card__summary .lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.income-trend-card__summary .lbl i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 收益 / 提现 主 Tab + 筛选图标（CPS 胶囊） */
.income-toolbar {
  padding: 12px 16px 8px;
}

.income-toolbar__row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.income-pill {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: var(--fs-body);
  font-weight: 500;
  cursor: pointer;
  background: var(--card);
  color: var(--text);
}

.income-pill.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.income-pill--icon {
  flex: 0 0 auto;
  width: 40px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.income-pill--icon svg {
  width: 18px;
  height: 18px;
}

.income-sub-pills {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  margin-top: 8px;
}

.income-sub-pills button {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 6px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: var(--fs-body-sm);
  font-weight: 500;
  cursor: pointer;
  background: var(--card);
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.income-sub-pills button.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.income-list-wrap {
  padding: 0 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.income-list-wrap.is-collapsed {
  display: none;
}

.income-tx-card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  border: 0;
}

.income-tx-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--split);
}

.income-tx-card__no {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.income-tx-card__tag {
  font-size: var(--fs-caption);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.income-tx-card__tag--ok {
  background: rgba(82, 196, 26, 0.1);
  color: #2e7d32;
  border-color: rgba(82, 196, 26, 0.2);
}

.income-tx-card__tag--wait {
  background: rgba(255, 152, 0, 0.1);
  color: #ff8f00;
  border-color: rgba(255, 152, 0, 0.2);
}

.income-tx-card__tag--proc {
  background: rgba(255, 152, 0, 0.1);
  color: #ff8f00;
  border-color: rgba(255, 152, 0, 0.2);
}

.income-tx-card__kv {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

.income-tx-card__kv--grid {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px 10px;
}

.income-tx-card__kv--grid .k {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
  padding-top: 2px;
}

.income-tx-card__kv--grid .v {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.income-tx-card__kv--grid .sub {
  margin-left: 6px;
  color: var(--text-3);
  font-size: var(--fs-mini);
}

.income-tx-card__kv--grid .amt {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.income-tx-card__kv--grid .amt--pos {
  color: var(--price);
}

.income-tx-card__kv--grid .amt--neg {
  color: #ff3a31;
}

.income-tx-card__kv strong {
  color: var(--text);
  font-weight: 500;
}

.income-tx-card__foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}

.income-tx-card__link {
  color: var(--text-2);
  font-weight: 500;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 12px;
}

.income-tx-card__link::after {
  content: " ›";
  opacity: 0.75;
}

/* —— P16 消息（布局参考 CPS 分销 message 页：https://cps-miniapp.pages.dev ） —— */
.msg-page {
  min-height: 100%;
}

/* 顶区：白底 + 左标题 + 右操作 */
.msg-page__hero {
  background: var(--card);
  padding: 16px 16px 0;
  position: sticky;
  top: 0;
  z-index: 12;
}

.msg-page__hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  margin-bottom: 8px;
}

.msg-page__title {
  font-size: var(--fs-title-lg);
  font-weight: 600;
  color: var(--text);
}

/* 主分类 Tab：均分 + 底部 3px 主色条（同 CPS） */
.msg-page__cats {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  border-bottom: none;
}

.msg-page__hero .msg-page__cats .msg-page__cat {
  flex: 1 1 0;
}

.msg-page__cat {
  flex: 1;
  min-width: 0;
  padding: 10px 2px 10px;
  border: none;
  background: none;
  font-size: var(--fs-nav-filter);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.msg-page__cat.is-active {
  color: var(--primary);
  font-weight: 600;
}

.msg-page__cat.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  background: var(--primary);
  border-radius: 999px;
}

/* 未读 / 已读：双列大胶囊（同 CPS flex-1 + 20px 圆角） */
.msg-page__read-pills {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
}

.msg-page__read-pills button {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-body);
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.msg-page__read-pills button.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.msg-page__read-pills button:not(.is-active) {
  background: var(--card);
  color: var(--text);
}

.msg-page__list {
  padding: 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 卡片：头（图标+标题 | 未读点）/ 正文 / 时间 —— 同 CPS 三段分割 */
.msg-card-cps {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.msg-card-cps__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--split);
}

.msg-card-cps__head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.msg-card-cps__head-left h3 {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.msg-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-icon-box svg {
  width: 18px;
  height: 18px;
}

.msg-icon-box--task {
  background: var(--primary-soft);
  color: var(--primary);
}

.msg-icon-box--money {
  background: #fff4e6;
  color: #ff9500;
}

.msg-icon-box--audit {
  background: #e8f5e9;
  color: #52c41a;
}

.msg-icon-box--sys {
  background: #f3f0ff;
  color: #8b5cf6;
}

.msg-card-cps__body {
  font-size: var(--fs-body);
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 12px;
}

.msg-card-cps__time {
  font-size: var(--fs-caption);
  color: var(--text-3);
}

.msg-card-cps__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 6px;
}

.msg-card-cps.is-read .msg-card-cps__head-left h3 {
  color: var(--text-3);
  font-weight: 600;
}

.msg-card-cps.is-read .msg-card-cps__body {
  color: var(--text-3);
}

.msg-card-cps.is-read .msg-card-cps__time {
  color: var(--text-3);
}

.msg-card-cps.is-read .msg-card-cps__dot {
  display: none;
}

/* —— P18 我的 · 布局对齐 CPS profile-page 主界面 —— */
.profile-cps {
  min-height: 100%;
}

.profile-cps__hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  padding: 16px 16px 16px;
  position: sticky;
  top: 0;
  z-index: 12;
}

.profile-cps__user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.profile-cps__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--avatar-accent);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(45, 46, 55, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

/* 任务详情抢单 · 收纳师名额：抢单人与「我的」页头像同一套样式（缩放到槽位内） */
.profile-cps__avatar--slot {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.profile-cps__avatar--img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}

.profile-cps__name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-cps__name {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
}

.profile-cps__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: var(--fs-badge);
  font-weight: 700;
  color: #7a4e00;
  background: linear-gradient(180deg, #fff6da 0%, #ffe7a8 100%);
  border: 1px solid rgba(214, 161, 40, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.profile-cps__sub {
  font-size: var(--fs-caption);
  color: var(--text-3);
  margin-top: 4px;
  line-height: 1.45;
}

.profile-cps__body {
  padding: 12px 16px 20px;
}

.profile-cps__asset {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--member-card-start) 0%, var(--member-card-end) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(45, 46, 55, 0.2);
}

.profile-cps__asset-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.profile-cps__asset-title {
  font-size: var(--fs-body);
  font-weight: 500;
}

.profile-cps__asset-title small {
  font-size: 12px;
  opacity: 0.9;
}

.profile-cps__asset-acts {
  display: flex;
  align-items: center;
  gap: 0;
}

.profile-cps__asset-acts button {
  border: none;
  background: none;
  padding: 4px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-cps__chev-btn {
  padding: 4px 0 4px 6px;
}

.profile-cps__asset-acts svg {
  width: 18px;
  height: 18px;
}

.profile-cps__chev {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.profile-cps__asset-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-cps__asset-amt {
  font-size: var(--fs-amount-lg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.profile-cps__asset-amt.is-masked {
  font-size: 22px;
  letter-spacing: 0.06em;
}

.profile-cps__asset-withdraw {
  flex-shrink: 0;
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--cta-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.profile-cps__asset-grid {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  text-align: center;
}

.profile-cps__asset-grid .lbl {
  font-size: var(--fs-mini);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.profile-cps__asset-grid .val {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.profile-cps__data {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  margin-bottom: 12px;
}

.profile-cps__data-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.profile-cps__data-head h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.profile-cps__data-head a {
  font-size: var(--fs-caption);
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.profile-cps__data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px 8px;
}

.profile-cps__data-grid .cell-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.profile-cps__data-grid .cell-num.is-accent {
  color: var(--primary);
}

.profile-cps__data-grid .cell-lbl {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 2px;
}

.profile-cps__quick {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  margin-bottom: 12px;
}

.profile-cps__quick h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.profile-cps__quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
}

.profile-cps__q-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  gap: 6px;
}

.profile-cps__q-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #F8F9FB;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-cps__q-icon svg {
  width: 22px;
  height: 22px;
}

/* 历史 Banner 样式（单页原型未引用时可忽略） */
.profile-banner {
  margin: 12px 16px;
  padding: 20px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.profile-user {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
}

.profile-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}

.profile-cities {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.92;
  line-height: 1.5;
}

.profile-team {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-team a {
  color: #fff;
  font-size: 13px;
  opacity: 0.95;
}

.notice-strip {
  margin: 0 16px 12px;
  padding: 10px 12px;
  background: #FFFBE6;
  border: 1px solid #FFE58F;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.72);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* 我的页内容区：notice-strip 与卡片同宽（416px） */
.profile-cps__body .notice-strip {
  margin: 0 0 12px;
}

.notice-strip svg {
  flex-shrink: 0;
  color: rgba(255, 165, 0, 0.95);
  margin-top: 1px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
}

.grid-4-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.03);
  font-size: 11px;
  color: var(--text);
  text-align: center;
}

.grid-4-item .g-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.grid-4-item .g-icon svg {
  width: 20px;
  height: 20px;
}

.menu-group {
  margin: 0 0 12px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--split);
  font-size: var(--fs-body);
  color: var(--text);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item .mi-arrow {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}

/* 通用折叠（显隐切换） */
.is-collapsed {
  display: none !important;
}

/* Tab 面板切换 */
.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--tabbar-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--tabbar-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 40;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1;
  color: var(--text-2);
  border: none;
  background: none;
  padding: 8px 0;
  cursor: pointer;
}

.tab-item.active {
  color: var(--primary);
  font-weight: 600;
}

/* CPS 底栏 Lucide 约 w-5 h-5 */
.tab-item svg {
  width: 20px;
  height: 20px;
}

/* —— 子页通用（P0～P3、P6～P10、P12～P15、P17、P19～P26） —— */
.phone-shell--sub .frame {
  min-height: 100vh;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
}

.sub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--split);
  position: sticky;
  top: 0;
  z-index: 20;
}

/* 子页顶栏：主色渐变（与 CTA --cta-gradient 同系） */
.sub-nav--gradient {
  background: var(--cta-gradient);
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  color: #fff;
}

.sub-nav--gradient .sub-nav__title,
.sub-nav--gradient .sub-nav__back {
  color: #fff;
}

/* 抢单任务详情：顶区纵向主色渐变（上深下浅），高度延伸至主信息卡片标题一带 */
.phone-shell--sub:has(> .frame.frame--grab-dock)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(228px, 46vh, 320px);
  background: linear-gradient(
    180deg,
    var(--primary-dark) 0%,
    var(--primary-light) 48%,
    var(--page-bg) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.phone-shell--sub:has(> .frame.frame--grab-dock) > .frame.frame--grab-dock {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

.phone-shell--sub:has(> .frame.frame--grab-dock) > .sub-nav.sub-nav--gradient {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

.sub-nav__back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}

.sub-nav__title {
  flex: 1;
  text-align: center;
  font-size: var(--fs-title-md);
  font-weight: 600;
  color: var(--text);
}

.sub-nav__right {
  width: 40px;
  flex-shrink: 0;
}

.sub-page {
  padding: 16px;
  padding-bottom: 100px;
}

.sub-page--tight {
  padding-top: 12px;
}

/* 任务详情抢单：提示条与顶栏无间距 */
.frame--grab-dock .sub-page--tight {
  padding-top: 0;
}

.btn-primary {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  text-align: center;
  border: none;
  border-radius: 24px;
  background: var(--cta-gradient);
  color: #fff;
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:active {
  filter: brightness(0.96);
}

.btn-secondary {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  text-align: center;
  border: 1px solid var(--primary);
  border-radius: 24px;
  background: var(--card);
  color: var(--primary);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
}

.btn-wechat-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border: 1px solid #07c160;
  border-radius: 24px;
  background: var(--card);
  color: #07c160;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-wechat-outline .wx-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #07c160;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.btn-wechat-outline .wx-icon svg {
  width: 14px;
  height: 14px;
}

/* —— CPS 风格：分享入口三宫格（邀请弹窗）—— */
.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 10px 0 2px;
}

.share-item {
  border: none;
  background: none;
  padding: 6px 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.share-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-icon--wechat {
  background: rgba(7, 193, 96, 0.10);
  color: #07c160;
}

.share-icon--moments {
  background: rgba(7, 193, 96, 0.10);
  color: #07c160;
}

.share-icon--poster {
  background: rgba(59, 130, 246, 0.10);
  color: #2563eb;
}

.share-icon svg {
  width: 28px;
  height: 28px;
}

.share-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

/* —— 手册表格（奖罚制度/服务要求等）—— */
.manual-table {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
  background: #fff;
}

.manual-row {
  display: grid;
  grid-template-columns: 62px 345px 64px;
  gap: 10px;
  padding: 12px 12px;
  border-top: 1px solid var(--split);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-2);
}

.manual-row:first-child {
  border-top: none;
}

.manual-row--head {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 700;
  color: var(--text);
}

.manual-row > div:first-child {
  color: var(--text-3);
  font-weight: 700;
}

.manual-row--head > div:first-child {
  color: var(--text);
}

.link-muted {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: var(--fs-body);
  color: var(--text-3);
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
}

.link-danger {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
  color: var(--primary);
  font-weight: 500;
}

.form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: var(--fs-body);
  font-family: inherit;
  background: #fafafa;
}

.form-textarea {
  min-height: 88px;
  resize: vertical;
}

.form-row {
  margin-bottom: 16px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: var(--fs-body);
  color: var(--text);
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  user-select: none;
}

.radio-row:first-of-type {
  border-top: none;
}

.radio-row input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.input-with-action {
  position: relative;
}

.input-with-action .form-input {
  padding-right: 86px;
}

.input-with-action .input-action {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.hint-box {
  font-size: var(--fs-caption);
  color: var(--text-3);
  line-height: 1.5;
  padding: 10px 12px;
  background: var(--page-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.page-footnote {
  margin-top: 20px;
  padding-bottom: 10px;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: var(--text-3);
}

.tip-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.tip-banner--ok {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.tip-banner--warn {
  background: #FFFBE6;
  color: rgba(0, 0, 0, 0.72);
  border: 1px solid #FFE58F;
}

.tip-banner--danger {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid rgba(255, 75, 62, 0.22);
}

/* 母版：左侧感叹号圆标 + 右侧文案 */
.tip-banner > span:first-child {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 165, 0, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
  margin-top: 2px;
}

.tip-banner > span:first-child::before {
  content: "!";
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  transform: translateY(-0.5px);
}

.tip-banner > span:nth-child(2),
.tip-banner > div:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
}

/* 绑定收纳师：提示条内的序号文案 */
.bind-roster-tip__list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bind-roster-tip__list li {
  line-height: 1.5;
}

.tip-banner--warn a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.tip-banner--warn strong.grab-bottom-dock__meta-num {
  color: var(--primary);
  font-weight: 650;
}

.step-bar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 16px;
  padding: 2px 8px 0;
  background: transparent;
}

.step-bar__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.38);
  line-height: 1.1;
}

.step-bar__item.is-active {
  color: var(--primary);
}

.step-bar::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 12px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

.step-bar__item::before {
  content: attr(data-step);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.step-bar__item.is-active::before {
  background: var(--primary);
}

.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.login-tabs button {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
}

.login-tabs button.is-active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.code-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.code-row .form-input {
  flex: 1;
}

.code-row .btn-code {
  flex-shrink: 0;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.tag-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-select span {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  cursor: default;
}

.tag-select span.is-on {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 48px 24px 40px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}

.splash__logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.splash h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.splash p {
  font-size: 14px;
  opacity: 0.92;
}

.splash__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.splash__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.splash__dots span.is-active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

.splash__slides {
  min-height: 64px;
  margin-top: 12px;
}

.splash__slide {
  display: none;
  font-size: 14px;
  opacity: 0.92;
  line-height: 1.55;
}

.splash__slide.is-active {
  display: block;
}

.splash .btn-primary {
  background: #fff;
  color: var(--primary);
}

.text-link-primary {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}

.detail-main-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 任务详情 · 行式排版（label 左 / 值右，行间分割，对齐参考「搬家任务详情」类稿） */
.detail-card--task {
  padding: 0 16px 14px;
}

.detail-card--task .detail-card__head {
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--split);
}

.detail-card__head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-card__head-row .detail-card__task-name {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.detail-card__task-name {
  font-size: var(--fs-title-md);
  font-weight: 650;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 10px;
}

.detail-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.detail-rows {
  margin: 0;
  padding: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--split);
  align-items: start;
}

.detail-row:last-of-type {
  border-bottom: none;
}

.detail-row__label {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.45;
  padding-top: 1px;
}

.detail-row__value {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  text-align: left;
  word-break: break-word;
}

.detail-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.detail-row__actions a,
.detail-row__actions .text-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.detail-row__actions a:active {
  opacity: 0.85;
}

.detail-row__value--with-icon {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.detail-row__text-main {
  flex: 1;
  min-width: 0;
}

.detail-row__icon-act {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 28px;
  min-height: 28px;
  padding: 4px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.detail-row__icon-act svg {
  display: block;
  width: 16px;
  height: 16px;
}

.detail-row__icon-act:active {
  opacity: 0.72;
}

/* 任务详情 · 组队行（与 detail-row 左标签 / 右内容一致） */
.detail-row--team {
  align-items: center;
}

.detail-row--team .detail-row__value {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}

.team-progress-value {
  width: 100%;
}

/* 组队：文案 + 进度条同一行（抢单详情等） */
.team-progress-value--one-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.team-progress-value--one-line .team-progress__summary {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1.45;
  padding-right: 0;
  white-space: nowrap;
}

.team-progress-value--one-line .team-progress__ratio {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  color: var(--text-2, #666);
  white-space: nowrap;
}

.team-progress-value--one-line .progress-bar {
  flex: 0 0 230px;
  width: 230px;
  margin-top: 0;
}

/* 抢单详情 · 收纳师名额：三格头像卡 / 添加 */
.team-slot-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-slot {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  border: 1px dashed transparent;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.team-slot--empty {
  border-color: rgba(255, 75, 62, 0.12);
  background: #fff7f6;
  color: var(--text-3);
}

.team-slot--empty:active:not(:disabled) {
  background: rgba(255, 75, 62, 0.06);
  border-color: rgba(255, 75, 62, 0.35);
  color: var(--primary);
}

.team-slot__plus-icon {
  display: block;
  opacity: 0.85;
  color: rgba(255, 186, 179, 1);
}

.team-slot--empty:active:not(:disabled) .team-slot__plus-icon {
  color: var(--primary);
}

.team-slot--filled {
  cursor: default;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.team-slot--filled:disabled {
  opacity: 1;
}

/* 抢单人：与个人中心 profile-cps__avatar 一致，不用渐变占位图 */
.team-slot--filled.team-slot--self {
  background: #fff;
  border: 2px solid #fff;
}

.team-slot--tone-a {
  background: linear-gradient(180deg, #ff6b5d 0%, #ff3a31 100%);
}

.team-slot--tone-b {
  background: linear-gradient(180deg, #a896ff 0%, #7b61ff 100%);
}

.team-slot--tone-c {
  background: linear-gradient(180deg, #5ac8fa 0%, #1890ff 100%);
}

.team-slot__avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 72% 88%, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 50%);
}

.detail-card__foot-meta {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--split);
}

.detail-subcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--split);
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}

.detail-subcard-head a {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.detail-subcard-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
  margin: 12px 0 0;
}

.detail-card--section {
  padding: 16px;
}

.detail-section-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--split);
}

/* 任务详情 · 区块内行列表（与任务信息行式一致，标题区已留底边线） */
.detail-rows--in-section {
  margin-top: -4px;
}

.detail-rows--in-section .detail-row:first-child {
  padding-top: 10px;
}

.detail-card__fee-hint {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.55;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--split);
}

.progress-steps--board {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 12px;
}

.progress-steps--board span {
  padding: 12px 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  border-color: #d9d9d9;
  color: var(--text-2);
  background: #fafbfc;
}

.progress-steps--board span.is-done {
  border-style: solid;
  background: var(--card);
}

/* 任务详情 · 执行链路 8 步（2×4） */
.progress-steps--flow8 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.progress-steps--flow8 span {
  font-size: 11px;
  line-height: 1.35;
  padding: 10px 8px;
  min-height: 48px;
}

.detail-kv {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.detail-kv dt {
  color: var(--text-3);
  flex: 0 0 88px;
}

.detail-kv dd {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--text);
}

.quick-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.quick-4 button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 11px;
  color: var(--text);
  cursor: pointer;
  border: 1px solid var(--split);
}

.quick-4 button.is-disabled,
.quick-4 button:disabled {
  color: var(--text-3);
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.06);
  cursor: default;
}

.quick-4 button.is-disabled svg,
.quick-4 button:disabled svg {
  color: rgba(153, 153, 153, 1);
}

.quick-4 svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

/* 任务详情 · 快捷四键（按最新原型口径）：白底无描边、图标主色、文字 #666 */
#task-quick-actions button {
  background: #fff;
  border: none;
  color: #666666;
}

#task-quick-actions button:disabled,
#task-quick-actions button.is-disabled {
  background: #fff;
}

#task-quick-actions svg {
  color: var(--primary);
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  font-size: 10px;
  text-align: center;
  color: var(--text-3);
  margin-bottom: 12px;
}

.progress-steps span {
  padding: 8px 4px;
  background: var(--card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--split);
}

.progress-steps span.is-done {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* 抢单任务详情 · 任务进度：已完成步骤为灰底、无描边（与未完成卡片区分） */
#grab-progress-steps span.is-done {
  background-color: rgba(245, 245, 245, 1);
  border: none;
  color: rgba(153, 153, 153, 1);
  font-weight: 500;
}

.sub-footer-fixed {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--shell-max);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, transparent, var(--page-bg) 30%);
}

/* 子任务详情 · 联系客户：主内容区为底部拨号条留出空间（由 JS 加 .subtask-contact-active） */
.phone-shell.subtask-contact-active #subtask-frame-contact {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
}

.contact-script-lead {
  margin: 0 0 12px;
  font-size: var(--fs-caption);
  color: var(--text-3);
  line-height: 1.55;
}

.contact-script-list {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: var(--fs-body-sm);
  color: var(--text-2);
  line-height: 1.65;
}

.contact-script-list li {
  margin-bottom: 10px;
}

.contact-script-list li:last-child {
  margin-bottom: 0;
}

.contact-subtask-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--shell-max);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: var(--card);
  border-top: 1px solid var(--split);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
  z-index: 60;
}

.contact-subtask-dock__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
}

.contact-subtask-dock__btn svg {
  flex-shrink: 0;
}

/* 子任务详情 · 绑定收纳师：人员清单表 */
.bind-roster-meta {
  margin: 0 0 12px;
  font-size: var(--fs-caption);
  color: var(--text-3);
  line-height: 1.5;
}

.roster-table {
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.roster-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 52px 76px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--split);
  font-size: var(--fs-body-sm);
  line-height: 1.45;
  color: var(--text-2);
}

.roster-row:first-child {
  border-top: none;
}

.roster-row--head {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 700;
  color: var(--text);
  font-size: 11px;
}

.roster-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.roster-status--ok {
  color: var(--success);
  background: var(--success-bg);
}

.roster-status--wait {
  color: var(--warn);
  background: var(--warn-bg);
}

/* 子任务详情 · 前往服务地：地图背景与地址浮层 */
.go-subtask-frame {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.phone-shell.subtask-go-active #subtask-frame-go {
  overflow: hidden;
}

.go-map {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 78% 82%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 54%),
    linear-gradient(180deg, #eef3f7 0%, #e7eef4 40%, #dde8f0 100%);
}

.go-map__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(34, 34, 34, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 34, 34, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
}

.go-map__pin {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -100%);
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(255, 75, 62, 0.28);
}

.go-map__pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(255, 75, 62, 0.14);
  filter: blur(0.2px);
}

.go-address-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 84px;
  padding: 14px 14px 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(45, 46, 55, 0.14);
  backdrop-filter: blur(10px);
}

/* 子任务详情 · 前往服务地：地址浮层固定不随底部滑动 */
.phone-shell.subtask-go-active .go-address-card {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: calc(var(--shell-max) - 32px);
  right: auto;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 65;
}

.go-address-card__title {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.go-address-card__main {
  font-size: 14px;
  color: var(--text);
  font-weight: 650;
  line-height: 1.45;
}

.go-address-card__meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.go-address-card__meta .dot {
  color: rgba(0, 0, 0, 0.25);
}

.go-subtask-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--shell-max);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: var(--card);
  border-top: 1px solid var(--split);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
  z-index: 60;
}

.go-subtask-dock__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
}

.go-subtask-dock__btn svg {
  flex-shrink: 0;
}

.phone-shell.subtask-go-active #subtask-frame-go {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
}

/* 子任务详情 · 开始服务：服务计时 */
.service-timer-card .detail-section-title {
  margin-bottom: 8px;
}

.service-timer__clock {
  margin-top: 16px;
  padding: 20px 16px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fafcfd 0%, #f3f6f9 100%);
  border: 1px solid var(--split);
  text-align: center;
}

.service-timer__value {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.1;
}

.service-timer__status {
  margin-top: 10px;
  font-size: var(--fs-caption);
  color: var(--text-3);
  font-weight: 600;
}

.start-subtask-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--shell-max);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: var(--card);
  border-top: 1px solid var(--split);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
  z-index: 60;
}

.start-subtask-dock__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

.start-subtask-dock__btn svg {
  flex-shrink: 0;
}

.start-subtask-dock__btn:disabled {
  opacity: 0.85;
  cursor: default;
  filter: none;
}

.phone-shell.subtask-start-active #subtask-frame-start {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
}

.finish-subtask-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--shell-max);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: var(--card);
  border-top: 1px solid var(--split);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
  z-index: 60;
}

.finish-subtask-dock__btn {
  width: 100%;
  box-sizing: border-box;
}

.phone-shell.subtask-finish-active #subtask-frame-finish {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
}

/* 子任务详情 · 生成合同单：费用清单 */
.fee-summary {
  margin-top: 12px;
  padding: 14px 14px 12px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff7f6 0%, #ffffff 100%);
  border: 1px solid rgba(255, 75, 62, 0.14);
}

.fee-summary__big {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.fee-summary__lbl {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fee-summary__amt {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.fee-summary__meta {
  margin-top: 8px;
  font-size: var(--fs-caption);
  color: var(--text-2);
  line-height: 1.45;
}

.fee-table {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.fee-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--split);
  font-size: var(--fs-body-sm);
  line-height: 1.45;
  color: var(--text-2);
}

.fee-row:first-child {
  border-top: none;
}

.fee-row--head {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 700;
  color: var(--text);
  font-size: 11px;
}

.fee-row--total {
  background: rgba(255, 75, 62, 0.06);
  font-weight: 800;
  color: var(--text);
}

.settle-subtask-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--shell-max);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: var(--card);
  border-top: 1px solid var(--split);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
  z-index: 60;
}

.settle-subtask-dock__btn {
  width: 100%;
  box-sizing: border-box;
}

.phone-shell.subtask-settle-active #subtask-frame-settle {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
}

/* 子任务详情 · 签署合同单 / 付款结算 */
.contract-mini {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fafcfd 0%, #ffffff 100%);
  border: 1px solid var(--split);
}

.contract-mini__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  color: var(--text-2);
  padding: 6px 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.contract-mini__row:first-child {
  border-top: none;
}

.contract-mini__row strong {
  color: var(--text);
  font-weight: 750;
}

.signature-pad {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
}

.signature-pad__tip {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 10px;
}

.signature-pad__box {
  height: 140px;
  border-radius: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.22);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.03) 0 0) 0 0 / 100% 1px,
    radial-gradient(circle at 25% 30%, rgba(255, 75, 62, 0.08) 0%, rgba(255, 75, 62, 0) 55%),
    linear-gradient(180deg, #fbfbfc 0%, #f6f7f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-3);
}

.signature-pad__meta {
  margin-top: 10px;
  font-size: var(--fs-caption);
  color: var(--text-2);
  font-weight: 650;
}

.contract-subtask-dock,
.pay-subtask-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--shell-max);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  background: var(--card);
  border-top: 1px solid var(--split);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
  z-index: 60;
}

.contract-subtask-dock__btn,
.pay-subtask-dock__btn {
  width: 100%;
  box-sizing: border-box;
}

.phone-shell.subtask-contract-active #subtask-frame-contract,
.phone-shell.subtask-pay-active #subtask-frame-pay {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
}

.pay-card {
  margin-top: 12px;
  padding: 14px 14px 12px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff7f6 0%, #ffffff 100%);
  border: 1px solid rgba(255, 75, 62, 0.14);
}

.pay-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  font-size: var(--fs-body-sm);
  color: var(--text-2);
}

.pay-card__row:first-child {
  border-top: none;
}

.pay-card__lbl {
  color: var(--text-3);
  font-weight: 700;
  font-size: 12px;
}

.pay-card__amt {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.pay-card__val {
  color: var(--text);
  font-weight: 650;
}

/* 任务详情 · 抢单底部坞（上滑露出感 + 人数文案 + 主按钮） */
.frame--grab-dock {
  padding-bottom: calc(168px + env(safe-area-inset-bottom, 0));
}

/* 抢单任务详情：主信息 / 快捷四键 / 下方区块卡片去掉外描边与快捷键描边 */
.frame--grab-dock .detail-main-card {
  border: none;
}

.frame--grab-dock .detail-card--task .detail-card__head {
  border-bottom: none;
  padding-bottom: 12px;
}

.frame--grab-dock .detail-section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 10px;
}

.grab-bottom-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--shell-max);
  background: var(--card);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.08);
  padding: 0 16px calc(14px + env(safe-area-inset-bottom, 0));
  z-index: 60;
  border-top: 1px solid var(--split);
}

.grab-bottom-dock__handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #e0e3e8;
  margin: 8px auto 10px;
}

.grab-bottom-dock__meta {
  text-align: center;
  font-size: var(--fs-body-sm);
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 12px;
}

.grab-bottom-dock__meta strong {
  color: var(--text);
  font-weight: 650;
}

.grab-bottom-dock__meta strong.grab-bottom-dock__meta-num {
  color: var(--primary);
  font-weight: 650;
}

.grab-bottom-dock__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.grab-bottom-dock__row .btn-secondary,
.grab-bottom-dock__row .btn-primary {
  flex: 1;
}

.grab-bottom-dock__link {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: none;
  background: none;
  font-size: var(--fs-caption);
  color: var(--text-3);
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
}

.grab-bottom-dock__link:hover {
  color: var(--text-2);
}

/* 抢单 · 滑动确认 */
.grab-slide {
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.grab-slide__track {
  position: relative;
  height: 48px;
  border-radius: 999px;
  /* 与滑块配色对调：轨道为主色实底，滑块为浅色；渐变沿滑动方向从左到右 */
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 48%, var(--primary-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  overflow: hidden;
  box-sizing: border-box;
}

.grab-slide__hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  pointer-events: none;
  letter-spacing: 0.02em;
  transition: opacity 0.12s ease;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.grab-slide__thumb {
  position: absolute;
  left: 4px;
  top: 50%;
  margin-top: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 与预览一致：浅珊瑚红滑块 */
  background: rgba(255, 126, 117, 1);
  color: rgba(255, 255, 255, 0.96);
  cursor: grab;
  box-shadow: none;
  z-index: 2;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  will-change: transform;
}

.grab-slide__thumb.is-spring {
  transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.grab-slide__thumb:active {
  cursor: grabbing;
}

.grab-bottom-dock.is-after-grab .grab-bottom-dock__primary-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.upload-cell {
  aspect-ratio: 1;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-3);
  background: #fafafa;
}

button.upload-cell {
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

button.upload-cell:active {
  opacity: 0.88;
}

.stat-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-cell {
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(255, 75, 62, 0.12);
}

.stat-cell .num {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
}

.stat-cell .lbl {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}

.identity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--card);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  margin-bottom: 10px;
}

.identity-card.is-current {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.proto-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.proto-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--split);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.proto-list a:active {
  background: var(--primary-soft);
}

.proto-list li:first-child a {
  border-radius: var(--radius) var(--radius) 0 0;
}

.proto-list li:last-child a {
  border-bottom: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.proto-nav-page .frame {
  padding: 16px;
}

.join-way-card {
  margin: 0 0 12px;
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: none;
}

.join-way-card.is-active {
  border-color: rgba(255, 75, 62, 0.38);
  box-shadow: 0 0 0 3px rgba(255, 75, 62, 0.10);
}

.join-way-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.join-way-card__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.join-way-card__desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
}

