/* ==========================================================================
   screens-staff.css — 阿姨 / 派单员端补充样式
   今日时间轴 / 接单 / 服务前后拍照 / 完成验收 / 收入 / 我的
   作业端按钮高度 ≥ 52px（阿姨手上是湿的）；拍照主按钮 88px。
   只用 tokens.css 的变量。
   ========================================================================== */

/* ---------- 员工端顶部条 ---------- */
.sthead {
  padding: calc(var(--h-status) + var(--sp-16)) var(--sp-16) var(--sp-14);
  background: var(--c-card); border-bottom: 1px solid var(--c-line);
}
.sthead__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8); }
.sthead__t { font-size: var(--fs-20); font-weight: var(--fw-s); letter-spacing: -.015em; }
.sthead__s { font-size: var(--fs-12); color: var(--c-text-2); margin-top: 2px; }
.sthead__badge {
  display: inline-flex; align-items: center; gap: var(--sp-4);
  padding: 3px var(--sp-10); border-radius: var(--r-99);
  background: var(--c-success-soft); color: var(--c-success-ink);
  font-size: var(--fs-11); font-weight: var(--fw-m);
}
.sthead__badge--busy { background: var(--c-warn-soft); color: var(--c-warn-ink-deep); }

/* 四态计数 */
.staff-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); margin-top: var(--sp-12); }
.staff-stat { display: flex; flex-direction: column; gap: 1px; padding: var(--sp-8); border-radius: var(--r-10); background: var(--c-fill); text-align: left; }
.staff-stat__v { font-size: var(--fs-20); font-weight: var(--fw-s); line-height: 1.1; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.staff-stat__k { font-size: var(--fs-10); color: var(--c-text-2); }
.staff-stat--now { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.staff-stat--warn { background: var(--c-warn-soft); color: var(--c-warn-ink-deep); }
.staff-stat--done { background: var(--c-success-soft); color: var(--c-success-ink); }

/* ---------- 今日时间轴 ---------- */
.tl-wrap { padding: var(--sp-12) var(--sp-16) 0; }
.tl-row { display: flex; gap: var(--sp-10); position: relative; padding-bottom: var(--sp-14); }
.tl-row::before { content: ""; position: absolute; left: 42px; top: 26px; bottom: 0; width: 2px; background: var(--c-line-2); }
.tl-row:last-child::before { display: none; }
.tl-time { flex: 0 0 34px; padding-top: var(--sp-2); text-align: right; }
.tl-time__v { font-size: var(--fs-13); font-weight: var(--fw-s); font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.tl-time__p { display: block; font-size: var(--fs-10); color: var(--c-text-3); }
.tl-dot { flex: 0 0 12px; width: 12px; height: 12px; margin-top: 7px; border-radius: var(--r-99); background: var(--c-card); border: 2px solid var(--c-line-2); z-index: 1; }
.tl-row--now .tl-dot { border-color: var(--c-brand); background: var(--c-brand); box-shadow: 0 0 0 4px var(--c-brand-soft); }
.tl-row--done .tl-dot { border-color: var(--c-success); background: var(--c-success); }
.tl-card {
  flex: 1; min-width: 0; background: var(--c-card); border-radius: var(--r-16);
  padding: var(--sp-12) var(--sp-14); box-shadow: var(--sh-1); border: 1px solid var(--c-line);
  text-align: left; width: 100%;
}
.tl-card__top { display: flex; align-items: flex-start; gap: var(--sp-8); }
.tl-card__name { font-size: var(--fs-15); font-weight: var(--fw-s); }
.tl-card__meta { font-size: var(--fs-11); color: var(--c-text-3); margin-top: 3px; line-height: 1.55; }
.tl-card__side { margin-left: auto; flex: 0 0 auto; }
.tl-card__amt { font-size: var(--fs-14); color: var(--c-accent); font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: var(--fw-s); }
.tl-card__note { margin-top: var(--sp-8); padding: var(--sp-8); border-radius: var(--r-8); background: var(--c-fill); font-size: var(--fs-11); color: var(--c-text-2); line-height: 1.55; }
.tl-card__acts { display: flex; gap: var(--sp-8); margin-top: var(--sp-10); }
.tl-card__acts .btn { flex: 1; height: 52px; border-radius: var(--r-12); font-size: var(--fs-15); }

/* ---------- 接单 ---------- */
.accept-list { padding: var(--sp-12) var(--sp-16); display: flex; flex-direction: column; gap: var(--sp-12); }
.accept-card { background: var(--c-card); border-radius: var(--r-18); box-shadow: var(--sh-1); padding: var(--sp-14); border: 1px solid var(--c-line); }
.accept-card__top { display: flex; align-items: flex-start; gap: var(--sp-8); }
.accept-card__name { font-size: var(--fs-16); font-weight: var(--fw-s); }
.accept-card__meta { font-size: var(--fs-12); color: var(--c-text-2); margin-top: 3px; line-height: 1.6; }
.accept-card__amt { margin-left: auto; font-size: var(--fs-18); color: var(--c-accent); font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: var(--fw-s); flex: 0 0 auto; }
.accept-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-top: var(--sp-10); }
.accept-fact { background: var(--c-fill); border-radius: var(--r-10); padding: var(--sp-8); text-align: center; }
.accept-fact__v { font-size: var(--fs-15); font-weight: var(--fw-s); font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.accept-fact__k { font-size: var(--fs-10); color: var(--c-text-3); }
.accept-card__note { margin-top: var(--sp-8); font-size: var(--fs-11); color: var(--c-text-3); line-height: 1.55; }
.accept-card__acts { display: flex; gap: var(--sp-8); margin-top: var(--sp-10); }
.accept-card__acts .btn { flex: 1; height: 52px; font-size: var(--fs-15); }
.accept-card__acts .btn--primary { flex: 1.4; }

/* ---------- 拍照页 ---------- */
.shoot-head {
  padding: calc(var(--h-status) + var(--sp-12)) var(--sp-16) var(--sp-12);
  background: var(--c-card); border-bottom: 1px solid var(--c-line);
}
.shoot-head__row { display: flex; align-items: center; gap: var(--sp-8); }
.shoot-head__t { font-size: var(--fs-18); font-weight: var(--fw-s); }
.shoot-head__s { font-size: var(--fs-12); color: var(--c-text-2); margin-top: 2px; }
.shoot-progress { margin-top: var(--sp-10); }
.shoot-progress__meta { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-11); color: var(--c-text-3); margin-bottom: var(--sp-4); }
.shoot-step { flex: 0 0 auto; font-size: var(--fs-11); font-weight: var(--fw-m); color: var(--c-brand-ink); }

.room-steps { display: flex; gap: var(--sp-4); padding: var(--sp-10) var(--sp-16) 0; }
.room-step { flex: 1; text-align: center; }
.room-step__dot {
  width: 100%; height: 4px; border-radius: var(--r-99); background: var(--c-line);
  display: block; overflow: hidden;
}
.room-step__dot i { display: block; height: 100%; background: var(--c-brand); border-radius: var(--r-99); }
.room-step__t { display: block; font-size: var(--fs-10); color: var(--c-text-3); margin-top: var(--sp-4); }
.room-step--on .room-step__t { color: var(--c-brand-ink); font-weight: var(--fw-m); }

.shoot-body { padding: var(--sp-14) var(--sp-16) 0; }
.shoot-room { text-align: center; }
.shoot-room__t { font-size: var(--fs-22); font-weight: var(--fw-s); letter-spacing: -.015em; }
.shoot-room__s { font-size: var(--fs-12); color: var(--c-text-3); margin-top: var(--sp-4); }
.shoot-frame {
  position: relative; width: 100%; aspect-ratio: 1 / 1; margin-top: var(--sp-14);
  border-radius: var(--r-20); overflow: hidden; background: var(--c-fill);
  border: 1px dashed var(--c-line-2); display: grid; place-items: center;
}
.shoot-frame .ph { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.shoot-frame__empty { display: flex; flex-direction: column; align-items: center; gap: var(--sp-8); color: var(--c-text-4); font-size: var(--fs-12); }
.shoot-frame__badge {
  position: absolute; left: var(--sp-10); top: var(--sp-10); z-index: 2;
  display: inline-flex; align-items: center; gap: var(--sp-4);
  padding: 3px var(--sp-8); border-radius: var(--r-99);
  background: var(--c-scrim); color: var(--c-on-brand); font-size: var(--fs-10);
}
.shoot-frame__time { position: absolute; right: var(--sp-10); bottom: var(--sp-10); z-index: 2; font-size: var(--fs-10); color: var(--c-on-image); background: var(--c-scrim); padding: 2px var(--sp-6); border-radius: var(--r-6); font-family: var(--font-num); }
.shoot-hint { margin-top: var(--sp-12); }
.shoot-btn {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-8);
  width: calc(100% - var(--sp-32)); height: 88px; margin: 0 var(--sp-16) var(--sp-10);
  border-radius: var(--r-20); background: var(--c-brand-strong); color: var(--c-on-brand);
  font-size: var(--fs-18); font-weight: var(--fw-s); box-shadow: var(--sh-brand);
  transition: transform var(--t-fast), background var(--t-fast);
}
.shoot-btn:active { transform: scale(.985); background: var(--c-brand-ink); }
.shoot-actions { display: flex; gap: var(--sp-8); padding: 0 var(--sp-16); }
.shoot-actions .btn { flex: 1; height: 52px; font-size: var(--fs-15); }
.shoot-done { padding: var(--sp-24) var(--sp-16); text-align: center; }
.shoot-done__ic { width: 72px; height: 72px; margin: 0 auto var(--sp-12); border-radius: var(--r-99); background: var(--c-success-soft); color: var(--c-success); display: grid; place-items: center; }
.shoot-done__t { font-size: var(--fs-19); font-weight: var(--fw-s); }
.shoot-done__s { font-size: var(--fs-12); color: var(--c-text-2); margin-top: var(--sp-6); line-height: 1.65; }
.shoot-done__acts { display: flex; flex-direction: column; gap: var(--sp-8); margin-top: var(--sp-16); }
.shoot-done__acts .btn { height: 52px; }

/* 服务后：上一张缩略 */
.prev-strip { display: flex; align-items: center; gap: var(--sp-10); margin-top: var(--sp-10); padding: var(--sp-8); background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-12); }
.prev-strip__thumb { width: 52px; height: 52px; flex: 0 0 auto; border-radius: var(--r-8); overflow: hidden; }
.prev-strip__main { flex: 1; min-width: 0; }
.prev-strip__t { font-size: var(--fs-12); font-weight: var(--fw-m); }
.prev-strip__s { font-size: var(--fs-10); color: var(--c-text-3); margin-top: 2px; }

/* ---------- 完成验收 ---------- */
.check-list { display: flex; flex-direction: column; }
.check-row { display: flex; align-items: flex-start; gap: var(--sp-10); width: 100%; text-align: left; padding: var(--sp-12) 0; }
.check-row + .check-row { border-top: 1px solid var(--c-line); }
.check-row__main { flex: 1; min-width: 0; }
.check-row__t { font-size: var(--fs-14); font-weight: var(--fw-m); }
.check-row__s { font-size: var(--fs-11); color: var(--c-text-3); margin-top: 2px; line-height: 1.5; }
.abnormal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
.abnormal {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-6);
  padding: var(--sp-12) var(--sp-6); border-radius: var(--r-14); background: var(--c-fill);
  text-align: center; transition: background var(--t-fast), transform var(--t-fast);
}
.abnormal:active { background: var(--c-brand-soft); transform: scale(.97); }
.abnormal__ic { width: 34px; height: 34px; border-radius: var(--r-10); background: var(--c-card); color: var(--c-text-1); display: grid; place-items: center; box-shadow: var(--sh-1); }
.abnormal__t { font-size: var(--fs-12); font-weight: var(--fw-m); }
.abnormal__s { font-size: var(--fs-10); color: var(--c-text-3); line-height: 1.35; }
.abnormal--danger .abnormal__ic { color: var(--c-danger); }

/* ---------- 收入 ---------- */
.income-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--h-status) + var(--sp-20)) var(--sp-16) var(--sp-18);
  background: linear-gradient(150deg, var(--c-brand-strong) 0%, var(--c-brand-ink) 100%);
  color: var(--c-on-brand);
}
.income-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: var(--r-99); background: rgba(255, 255, 255, .12); }
.income-hero > * { position: relative; z-index: 1; }
.income-hero__k { font-size: var(--fs-12); opacity: .85; }
.income-hero__v { font-size: var(--fs-32); font-weight: var(--fw-s); letter-spacing: -.02em; font-family: var(--font-num); font-variant-numeric: tabular-nums; margin-top: var(--sp-4); }
.income-hero__v small { font-size: var(--fs-16); font-weight: var(--fw-r); opacity: .85; }
.income-hero__sub { display: flex; gap: var(--sp-16); margin-top: var(--sp-12); font-size: var(--fs-11); opacity: .88; }
.income-hero__sub b { display: block; font-size: var(--fs-16); font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.period-seg { display: flex; gap: var(--sp-4); padding: var(--sp-6); border-radius: var(--r-12); background: var(--c-card); box-shadow: var(--sh-1); margin: var(--sp-12) var(--sp-16) 0; }
.period-seg__b { flex: 1; height: 32px; border-radius: var(--r-8); font-size: var(--fs-12); color: var(--c-text-2); }
.period-seg__b--on { background: var(--c-brand-soft); color: var(--c-brand-ink); font-weight: var(--fw-m); }
.income-row { background: var(--c-card); border-radius: var(--r-16); box-shadow: var(--sh-1); overflow: hidden; }
.income-row + .income-row { margin-top: var(--sp-10); }
.income-row__head { display: flex; align-items: center; gap: var(--sp-10); width: 100%; text-align: left; padding: var(--sp-12) var(--sp-14); }
.income-row__main { flex: 1; min-width: 0; }
.income-row__t { font-size: var(--fs-14); font-weight: var(--fw-m); }
.income-row__s { font-size: var(--fs-11); color: var(--c-text-3); margin-top: 2px; }
.income-row__amt { font-size: var(--fs-16); color: var(--c-accent); font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: var(--fw-s); }
.income-row__body { padding: 0 var(--sp-14) var(--sp-12); }
.income-line { display: flex; justify-content: space-between; gap: var(--sp-10); font-size: var(--fs-12); padding: var(--sp-4) 0; border-top: 1px dashed var(--c-line); }
.income-line__k { color: var(--c-text-3); }
.income-line__v { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.income-line--total .income-line__k { color: var(--c-text-1); font-weight: var(--fw-m); }
.income-line--total .income-line__v { color: var(--c-accent); font-weight: var(--fw-s); }
.income-note { margin: var(--sp-12) var(--sp-16); }

/* ---------- 我的（阿姨端） ---------- */
.staffme {
  padding: calc(var(--h-status) + var(--sp-20)) var(--sp-16) var(--sp-20);
  background: linear-gradient(150deg, var(--c-brand-strong) 0%, var(--c-brand-ink) 100%);
  color: var(--c-on-brand); position: relative; overflow: hidden;
}
.staffme::after { content: ""; position: absolute; right: -36px; top: -46px; width: 170px; height: 170px; border-radius: var(--r-99); background: rgba(255, 255, 255, .12); }
.staffme > * { position: relative; z-index: 1; }
.staffme__row { display: flex; align-items: center; gap: var(--sp-12); }
.staffme__name { font-size: var(--fs-20); font-weight: var(--fw-s); letter-spacing: -.015em; }
.staffme__role { font-size: var(--fs-12); opacity: .88; margin-top: 2px; }
.staffme__shift { display: inline-flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-12); padding: 4px var(--sp-10); border-radius: var(--r-99); background: rgba(255, 255, 255, .14); font-size: var(--fs-11); }
.staffme__stats { display: flex; gap: var(--sp-20); margin-top: var(--sp-16); }
.staffme__stat b { display: block; font-size: var(--fs-18); font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.staffme__stat span { font-size: var(--fs-10); opacity: .82; }
.cert-row { display: flex; align-items: center; gap: var(--sp-10); width: 100%; text-align: left; padding: var(--sp-12) 0; }
.cert-row + .cert-row { border-top: 1px solid var(--c-line); }
.cert-row__ic { width: 32px; height: 32px; border-radius: var(--r-8); display: grid; place-items: center; background: var(--c-brand-soft); color: var(--c-brand-ink); flex: 0 0 auto; }
.cert-row__main { flex: 1; min-width: 0; }
.cert-row__t { font-size: var(--fs-13); font-weight: var(--fw-m); }
.cert-row__s { font-size: var(--fs-10); color: var(--c-text-3); margin-top: 1px; }
.training-row { display: flex; align-items: flex-start; gap: var(--sp-8); padding: var(--sp-10) 0; }
.training-row + .training-row { border-top: 1px solid var(--c-line); }
.training-row__dot { width: 7px; height: 7px; margin-top: 7px; border-radius: var(--r-99); background: var(--c-brand); flex: 0 0 auto; }
.training-row__t { font-size: var(--fs-13); }
.training-row__s { font-size: var(--fs-10); color: var(--c-text-3); margin-top: 2px; }
.role-switch { padding: var(--sp-12) var(--sp-16) var(--sp-16); }
.role-switch__btn { width: 100%; height: 54px; border-radius: var(--r-14); border: 1px dashed var(--c-brand-weak); color: var(--c-brand-ink); background: var(--c-brand-soft); font-size: var(--fs-15); font-weight: var(--fw-m); display: flex; align-items: center; justify-content: center; gap: var(--sp-6); }

/* ---------- 员工端通用大按钮 ---------- */
.btn--staff { height: 52px; font-size: var(--fs-15); border-radius: var(--r-12); }
.btn--staff-block { display: flex; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .shoot-btn { transition: none; }
}

/* ---------- 今日页核心操作条：到岗打卡 / 完工拍照（次要信息折叠进「更多信息」） ---------- */
.stquick { display: flex; gap: var(--sp-10); padding: var(--sp-12) var(--sp-16) 0; }
.stquick .btn { flex: 1; height: 52px; font-size: var(--fs-15); border-radius: var(--r-12); }

/* ---------- 「更多信息」收起区：公告 / 统计 / 活动等次要信息 ---------- */
.moreinfo { margin: var(--sp-12) var(--sp-16) 0; background: var(--c-card); border-radius: var(--r-16); box-shadow: var(--sh-1); overflow: hidden; }
.moreinfo__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8); width: 100%; padding: var(--sp-14) var(--sp-14); text-align: left; }
.moreinfo__t { font-size: var(--fs-14); font-weight: var(--fw-m); color: var(--c-text-1); }
.moreinfo__more { font-size: var(--fs-12); color: var(--c-text-3); display: flex; align-items: center; gap: 2px; }
.moreinfo__body { display: none; padding: 0 var(--sp-14) var(--sp-14); border-top: 1px solid var(--c-line); }
.moreinfo--open .moreinfo__body { display: block; }
.moreinfo--open .moreinfo__chev { transform: rotate(180deg); }
.moreinfo__chev { color: var(--c-text-4); transition: transform var(--t-base) var(--ease-out); }
.moreinfo__blk { margin-top: var(--sp-12); }
.moreinfo__k { font-size: var(--fs-12); color: var(--c-text-3); margin-bottom: var(--sp-6); }
.moreinfo__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

/* ---------- 返工任务卡（带返工红标，今日订单里单独一组） ---------- */
.rw-wrap { padding: var(--sp-12) var(--sp-16) 0; }
.rw-wrap .tl-card { border-color: var(--c-danger-weak, var(--c-danger-soft)); }


/* ---------- 资质行：名称+说明压到同一行，说明省略号收尾 ---------- */
.cert-row__body { display: flex; flex-direction: row; align-items: baseline; gap: var(--sp-8); min-width: 0; }
.cert-row__body > .cert-row__t { white-space: nowrap; flex: 0 0 auto; }
.cert-row__body > .cert-row__s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
