/* ==========================================================
   地推作业平台 H5 样式
   ========================================================== */
:root {
  --brand: #2f6bff;
  --brand-deep: #1e4fd8;
  --brand-soft: #eaf0ff;
  --accent: #ff7a2f;
  --ink: #14181f;
  --ink-2: #4b5563;
  --sub: #8a94a6;
  --line: #eceef3;
  --bg: #f5f6fa;
  --card: #ffffff;
  --ok: #12b76a;
  --warn: #f79009;
  --bad: #f04438;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(23, 43, 99, 0.08);
  --van-primary-color: #2f6bff;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

#app {
  height: 100%;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
}

input {
  font-family: inherit;
}

.page {
  min-height: 100vh;
  padding-bottom: 64px;
  background: var(--bg);
}

.page.no-tabbar {
  padding-bottom: 0;
}

/* ---------- 顶部 ---------- */
.hd {
  background: linear-gradient(160deg, #2f6bff 0%, #4f86ff 55%, #6f9dff 100%);
  padding: calc(10px + env(safe-area-inset-top)) 16px 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hd::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.hd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.95;
}

.hd-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 70%;
}

.hd-loc b {
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-loc .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9dffcd;
  box-shadow: 0 0 0 3px rgba(157, 255, 205, 0.25);
  flex: 0 0 auto;
}

.hd-refresh {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

.hd-title {
  font-size: 20px;
  font-weight: 700;
  margin: 12px 0 12px;
  letter-spacing: 0.5px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 4px 14px rgba(20, 51, 128, 0.12);
}

.search-box input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
}

.search-box input::placeholder {
  color: #a8b0bf;
}

/* ---------- 轮播 / 公告 ---------- */
.banner {
  margin: 12px 14px 0;
  border-radius: 14px;
  overflow: hidden;
  height: 118px;
  box-shadow: var(--shadow);
}

.banner img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.notice {
  margin: 12px 14px 0;
  background: #fff8ed;
  border: 1px solid #ffe3c2;
  color: #9a5b12;
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.notice .txt {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 四宫格（扁平紧凑版：格子高度砍掉近一半，省下的空间全部还给地图） ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px 10px 2px;
}

.grid-item {
  background: #fff;
  border-radius: 9px;
  padding: 4px 2px 4px;
  text-align: center;
  /* 扁平：去掉投影，改用一圈极淡的描边区分卡片 */
  box-shadow: none;
  border: 1px solid #eef1f7;
  transition: transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

.grid-item:active {
  transform: scale(0.97);
}

.grid-item.on {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.gi-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  margin: 0 auto 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.gi-name {
  font-size: 10px;
  line-height: 13px;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gi-count {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 8px;
  line-height: 1;
  color: var(--sub);
}

/* ---------- 视图切换 ---------- */
.viewbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 8px;
}

.seg {
  display: flex;
  background: #e9edf6;
  border-radius: 10px;
  padding: 3px;
}

.seg span {
  padding: 5px 14px;
  font-size: 13px;
  border-radius: 8px;
  color: var(--ink-2);
  transition: all 0.18s;
}

.seg span.on {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(23, 43, 99, 0.12);
}

.viewbar .rad {
  font-size: 12px;
  color: var(--sub);
}

/* ---------- 地图 ---------- */
.mapwrap {
  margin: 0 14px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  /* 顶部四宫格压扁后省下约 88px，全部加给地图 */
  height: calc(40vh + 88px);
  min-height: 300px;
  background: #e8eef8;
  box-shadow: var(--shadow);
}

.map {
  width: 100%;
  height: 100%;
}

.map-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(160deg, #eef3fd, #dfe8f8);
  color: var(--ink-2);
  font-size: 13px;
  text-align: center;
  padding: 20px;
  line-height: 1.7;
}

.locate-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(23, 43, 99, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

/* 自定义 marker（扁平版：纯圆点 + 一行小标签，比原来的水滴形矮一半） */
.mk {
  width: 26px;
  height: 30px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
}

.mk-b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(20, 40, 90, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mk-b span {
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.mk.claimed .mk-b {
  background: #9aa5b8;
}

.mk.active .mk-b {
  background: var(--accent);
  transform: scale(1.14);
}

/* 选中卡片 */
.mcard {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 62px;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px 12px;
  box-shadow: 0 -6px 30px rgba(20, 40, 90, 0.18);
  z-index: 60;
}

.mcard .close {
  position: absolute;
  right: 12px;
  top: 10px;
  color: var(--sub);
  font-size: 18px;
  line-height: 1;
}

.mcard-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-right: 22px;
}

.mcard-top b {
  font-size: 16px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcard-top .dist {
  font-size: 12px;
  color: var(--brand);
  flex: 0 0 auto;
  font-weight: 600;
}

.mcard-sub {
  font-size: 12px;
  color: var(--sub);
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
  white-space: nowrap;
}

.tag.gray {
  background: #f1f3f7;
  color: var(--sub);
}

.price {
  color: var(--accent);
  font-weight: 700;
  font-size: 19px;
}

.price small {
  font-size: 12px;
  font-weight: 500;
  margin-right: 1px;
}

.mcard-btns {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}

.btn:active {
  opacity: 0.82;
}

.btn.primary {
  background: linear-gradient(135deg, #2f6bff, #4f86ff);
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.32);
}

.btn.ghost {
  background: #f3f5fa;
  color: var(--ink-2);
  flex: 0 0 96px;
}

.btn[disabled] {
  opacity: 0.5;
  box-shadow: none;
}

.btn.block {
  width: 100%;
}

.btn.accent {
  background: linear-gradient(135deg, #ff8a3d, #ff6a1f);
  box-shadow: 0 6px 16px rgba(255, 122, 47, 0.32);
  color: #fff;
}

/* ---------- 任务列表 ---------- */
.list {
  padding: 10px 14px 18px;
}

.tcard {
  background: #fff;
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 12px rgba(23, 43, 99, 0.05);
}

.tcard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tcard-head b {
  font-size: 15px;
  font-weight: 650;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcard-dist {
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  flex: 0 0 auto;
}

.tcard-sub {
  font-size: 12px;
  color: var(--sub);
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcard-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
}

.tcard-foot .spacer {
  flex: 1;
}

.mini-btn {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: var(--brand);
  color: #fff;
}

.mini-btn.ghost {
  background: #f1f3f8;
  color: var(--ink-2);
}

.mini-btn.gray {
  background: #f1f3f8;
  color: #9aa5b8;
}

/* ---------- 通用卡片 / 分区 ---------- */
.section {
  background: #fff;
  border-radius: var(--radius);
  margin: 12px 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 12px rgba(23, 43, 99, 0.04);
}

.section-title {
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.section-title::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--brand);
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--line);
}

.kv:last-child {
  border-bottom: 0;
}

.kv .k {
  color: var(--sub);
  flex: 0 0 auto;
}

.kv .v {
  color: var(--ink);
  text-align: right;
  word-break: break-all;
}

.require-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.9;
}

/* ---------- 我的 ---------- */
.mine-hd {
  background: linear-gradient(160deg, #2f6bff, #4f86ff 60%, #78a3ff);
  padding: calc(22px + env(safe-area-inset-top)) 18px 54px;
  color: #fff;
  position: relative;
}

.mine-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.mine-name {
  font-size: 18px;
  font-weight: 700;
}

.mine-phone {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}

.stat-card {
  margin: -38px 14px 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 6px;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
}

.stat-item b {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.stat-item span {
  display: block;
  font-size: 11px;
  color: var(--sub);
  margin-top: 4px;
}

.menu-card {
  background: #fff;
  border-radius: var(--radius);
  margin: 12px 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(23, 43, 99, 0.04);
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-row .ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  font-size: 14px;
}

.menu-row .arrow {
  margin-left: auto;
  color: #c8cedb;
  font-size: 16px;
}

.menu-row .badge {
  margin-left: auto;
  background: var(--bad);
  color: #fff;
  font-size: 11px;
  border-radius: 10px;
  padding: 1px 7px;
}

/* ---------- 登录 ---------- */
.login-page {
  min-height: 100vh;
  background: linear-gradient(170deg, #2456d8 0%, #2f6bff 40%, #6f9dff 100%);
  padding: calc(60px + env(safe-area-inset-top)) 24px 30px;
  color: #fff;
}

.login-logo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 20px;
}

.login-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
}

.login-sub {
  font-size: 13px;
  opacity: 0.85;
  margin: 10px 0 28px;
  line-height: 1.7;
}

/* 顶部标识换成本地图片时撑满那个圆角方块 */
.login-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 17px;
  display: block;
}

/* 顶部整块（标识+标题+副标题）关掉时，把 login-sub 原来的下边距补回来 */
.login-card-flat {
  margin-top: 28px;
}

/* 登录页底部：公众号二维码 + 一句提醒，后台可开关 */
.login-foot {
  margin-top: 26px;
  text-align: center;
}

.login-qr {
  width: 136px;
  height: 136px;
  /* 全局 img 是 display:block，text-align 对它无效，必须用 margin auto 居中 */
  display: block;
  margin: 0 auto;
  padding: 7px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 12px 26px rgba(8, 26, 70, 0.26);
}

.login-qr-tip {
  margin: 10px auto 0;
  max-width: 260px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 8px 4px 20px;
  box-shadow: 0 18px 40px rgba(12, 34, 90, 0.2);
  color: var(--ink);
}

.login-card .van-cell {
  padding: 14px 16px;
}

.login-agree {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 18px 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

/* 勾选框不能被右侧长文本挤扁 */
.login-agree .van-checkbox {
  flex: 0 0 auto;
  padding-top: 2px;
}

.login-agree > div {
  flex: 1 1 auto;
  min-width: 0;
}

.login-agree a {
  color: #fff;
  text-decoration: underline;
}

.login-btn {
  margin: 14px 16px 0;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1b46cf, #3569ef);
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  width: calc(100% - 32px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(8, 26, 82, 0.34);
}

.login-btn:disabled {
  opacity: 0.55;
  box-shadow: none;
}

.login-tip {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 18px;
  line-height: 1.8;
}

.login-tip-main {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-top: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-audit-tip {
  margin: 16px 16px 0;
  padding: 11px 13px;
  border-radius: 12px;
  background: #fff7ed;
  color: #b45309;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

/* ---------- 提交页 ---------- */
.form-block {
  background: #fff;
  border-radius: var(--radius);
  margin: 12px 14px;
  padding: 4px 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(23, 43, 99, 0.04);
}

.uploader-box {
  padding: 14px 16px;
}

.uploader-tip {
  font-size: 12px;
  color: var(--sub);
  margin-top: 8px;
  line-height: 1.7;
}

.photo-preview {
  width: 100%;
  border-radius: 12px;
  margin-top: 10px;
}

.submit-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(20, 40, 90, 0.08);
  display: flex;
  gap: 10px;
  z-index: 50;
}

/* ---------- 结果页 ---------- */
.result-page {
  min-height: 100vh;
  background: #fff;
  padding: calc(40px + env(safe-area-inset-top)) 24px 30px;
  text-align: center;
}

.result-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: #fff;
}

.result-icon.ok {
  background: linear-gradient(135deg, #12b76a, #32d583);
  box-shadow: 0 10px 24px rgba(18, 183, 106, 0.28);
}

.result-icon.wait {
  background: linear-gradient(135deg, #f79009, #fdb022);
  box-shadow: 0 10px 24px rgba(247, 144, 9, 0.28);
}

.result-icon.bad {
  background: linear-gradient(135deg, #f04438, #f97066);
  box-shadow: 0 10px 24px rgba(240, 68, 56, 0.25);
}

.result-title {
  font-size: 20px;
  font-weight: 750;
}

.result-sub {
  font-size: 13px;
  color: var(--sub);
  margin-top: 10px;
  line-height: 1.8;
}

.tip-box {
  margin: 22px 0 0;
  background: #fff8ed;
  border: 1px solid #ffe3c2;
  color: #9a5b12;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
}

.result-actions {
  margin-top: 26px;
  display: flex;
  gap: 10px;
}

/* ---------- 列表通用 ---------- */
.order-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 13px 14px;
  margin: 10px 14px 0;
  box-shadow: 0 2px 12px rgba(23, 43, 99, 0.04);
}

.order-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-head b {
  flex: 1;
  font-size: 15px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 7px;
  font-weight: 600;
  flex: 0 0 auto;
}

.badge-status.s2 {
  background: #fff4e6;
  color: #b25f00;
}

.badge-status.s3 {
  background: #e8f9f0;
  color: #0b8a4b;
}

.badge-status.s4 {
  background: #fef0ef;
  color: #c0281c;
}

.order-body {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.order-body img {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f3f7;
}

.order-meta {
  flex: 1;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.9;
}

.order-meta .amt {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

.reject-reason {
  margin-top: 8px;
  background: #fef4f3;
  color: #b42318;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  line-height: 1.6;
}

.empty-box {
  padding: 60px 20px;
  text-align: center;
  color: var(--sub);
  font-size: 13px;
}

.empty-box .em {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ---------- 动效 ---------- */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
  transform: translateY(10px);
}

.skeleton {
  padding: 14px;
}

.sk-line {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: sk 1.3s ease infinite;
  margin-bottom: 10px;
}

@keyframes sk {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* 覆盖 vant 部分样式，让整体更贴近设计 */
.van-tabbar {
  box-shadow: 0 -2px 14px rgba(20, 40, 90, 0.06);
}

.van-tabbar-item--active {
  color: var(--brand);
  font-weight: 600;
}

.van-cell {
  font-size: 14px;
}

.van-field__label {
  color: var(--ink-2);
}

.van-tabs__line {
  background-color: var(--brand);
  width: 22px;
  border-radius: 3px;
}

.van-tag {
  border-radius: 6px;
}

/* ---------- 表单补充 ---------- */
.send-code {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0 4px 10px;
}

.send-code.dis {
  color: #b6bdca;
  font-weight: 400;
}

.photo-slot {
  height: 148px;
  border: 1.5px dashed #cfd8e8;
  border-radius: 14px;
  background: #f8fafd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo-slot:active {
  background: #eef3fd;
}

.photo-retake {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
}

.photo-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--brand);
}

.plain-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  background: #fbfcfe;
}

.plain-input:focus,
.plain-textarea:focus {
  border-color: var(--brand);
  background: #fff;
}

.plain-textarea {
  width: 100%;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  resize: none;
  background: #fbfcfe;
  font-family: inherit;
  line-height: 1.7;
}

.extra-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.extra-item {
  width: 78px;
  height: 78px;
  border-radius: 11px;
  overflow: hidden;
  position: relative;
}

.extra-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.extra-item .del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.extra-add {
  width: 78px;
  height: 78px;
  border-radius: 11px;
  border: 1.5px dashed #cfd8e8;
  background: #f8fafd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #b6c0d0;
}

.van-nav-bar {
  background: #fff;
}

.van-nav-bar__title {
  font-weight: 600;
}

/* ==========================================================
   首页：类型筛选条 / 地图空态 / 作业流程面板
   ========================================================== */
.viewbar .rad {
  cursor: pointer;
  user-select: none;
}

.filter-bar {
  margin: 0 14px 8px;
  padding: 9px 12px;
  background: var(--brand-soft);
  border: 1px solid #d5e0ff;
  border-radius: 10px;
  color: var(--brand-deep);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.filter-bar b {
  font-weight: 700;
}

.filter-bar .fb-clear {
  margin-left: auto;
  white-space: nowrap;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
}

.map-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  padding: 16px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 24px rgba(23, 43, 99, 0.12);
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
  pointer-events: none;
}

.map-empty .me-ico {
  font-size: 24px;
  margin-bottom: 4px;
}

.map-empty small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--sub);
  line-height: 1.6;
}

/* ---------- 作业流程面板 ---------- */
.type-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(16, 24, 44, 0.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
}

.type-panel {
  width: 100%;
  max-height: 88vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(16, 24, 44, 0.18);
  overflow: hidden;
}

.tp-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 16px 13px;
  border-bottom: 1px solid var(--line);
  flex: none;
}

.tp-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex: none;
}

.tp-hd-txt {
  flex: 1;
  min-width: 0;
}

.tp-hd-txt b {
  font-size: 16px;
  color: var(--ink);
}

.tp-sub {
  font-size: 12px;
  color: var(--sub);
  margin-top: 3px;
}

.tp-close {
  font-size: 18px;
  color: var(--sub);
  padding: 4px 6px;
  cursor: pointer;
}

.tp-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px 20px;
}

.tp-intro {
  background: var(--brand-soft);
  border-radius: 11px;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--brand-deep);
}

.tp-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 14px 0 9px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tp-title-2 {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.tp-title-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--sub);
}

.tp-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tp-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tp-no {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
}

.tp-txt {
  flex: 1;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
}

.tp-note {
  margin-top: 11px;
  background: #fff8ec;
  border: 1px solid #ffe4b8;
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 12px;
  line-height: 1.7;
  color: #96560a;
  display: flex;
  gap: 8px;
}

.tp-note > span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 2px;
}

.tp-empty {
  background: #f8fafd;
  border: 1px dashed #dbe3f0;
  border-radius: 12px;
  padding: 13px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

.tp-empty-ico {
  font-size: 21px;
  margin-bottom: 2px;
}

.tp-empty-sub {
  margin-top: 5px;
  font-size: 11px;
  color: var(--sub);
  line-height: 1.7;
}

.tp-empty-btn {
  margin-top: 9px;
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
}

.tp-shop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.tp-shop:active {
  opacity: 0.7;
}

.tp-shop-l {
  flex: 1;
  min-width: 0;
}

.tp-shop-l b {
  font-size: 14px;
  color: var(--ink);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-shop-l div {
  font-size: 11px;
  color: var(--sub);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-shop-r {
  text-align: right;
  flex: none;
  font-size: 12px;
  color: var(--sub);
}

.tp-price {
  color: var(--accent);
  font-weight: 700;
}

.tp-tag {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
}

.tp-tag.gray {
  background: #f0f2f6;
  color: #8a94a6;
}

.tp-foot {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}

.tp-foot .btn.ghost {
  flex: 0 0 108px;
}

.slide-up-enter-active,
.slide-up-leave-active {
  transition: opacity 0.22s ease;
}

.slide-up-enter-active .type-panel,
.slide-up-leave-active .type-panel {
  transition: transform 0.24s ease;
}

.slide-up-enter-from,
.slide-up-leave-to {
  opacity: 0;
}

.slide-up-enter-from .type-panel,
.slide-up-leave-to .type-panel {
  transform: translateY(100%);
}

/* ---------- 作业提交页：流程提示 / 现场定位 ---------- */
.flow-tip {
  margin: 0 14px 12px;
  padding: 11px 12px;
  background: #fff8ec;
  border: 1px solid #ffe4b8;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.75;
  color: #96560a;
}

.flow-tip .ft-ico {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 2px;
}

.loc-ok {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 7px;
  background: #e8f8ef;
  color: #0b8a4b;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- 码牌作业：现场手动提交 ---------- */
.gi-count.code-entry {
  color: #12b76a;
  font-weight: 700;
}

/* 图标下方的类型名标签：所有类型都挂，包括后台自定义的 */
.mk-label {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(124, 58, 237, 0.94);
  color: #fff;
  font-size: 9px;
  line-height: 14px;
  padding: 0 5px;
  border-radius: 7px;
  box-shadow: none;
  pointer-events: none;
}

/* 同坐标按作业条件拆出的多条任务：逐条散开后收窄标签，长任务名不互相盖住。
   完整名字点开任务详情看，地图上不省略图标本体。 */
.mk-label.mk-label-slim {
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk.mk-scatter .mk-b {
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(20, 40, 90, .32);
}

.code-hero {
  margin: 12px 14px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eafaf2, #eef4ff);
  border: 1px solid #d8efe3;
}

.code-hero-t {
  font-size: 15px;
  font-weight: 700;
  color: #123b2c;
}

.code-hero-s {
  font-size: 12px;
  color: #42645a;
  line-height: 1.75;
  margin-top: 6px;
}

.code-optional {
  color: #8a94a6;
  font-size: 12px;
  font-weight: 400;
}

.code-pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.code-linked {
  font-size: 11px;
  color: #0b8a4b;
  background: #e8f8ef;
  padding: 3px 8px;
  border-radius: 8px;
}

.code-step-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.code-step-h b {
  font-size: 15px;
  color: #1f2937;
}

.code-no {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.code-must {
  font-size: 11px;
  color: #f04438;
  background: #fef0ef;
  padding: 2px 7px;
  border-radius: 8px;
  margin-left: auto;
}

.code-loc {
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.8;
}

.code-loc.ok {
  background: #f0faf4;
  border: 1px solid #d5f0e1;
}

.code-loc.bad {
  background: #fef4f3;
  border: 1px solid #fbd6d2;
}

.code-loc.wait {
  background: #f5f7fb;
  border: 1px solid #e6ebf3;
}

.code-loc-t {
  font-weight: 700;
  font-size: 13px;
}

.code-loc.ok .code-loc-t { color: #0b8a4b; }
.code-loc.bad .code-loc-t { color: #b42318; }
.code-loc.wait .code-loc-t { color: #6b7688; }

.code-loc-v {
  color: #55627a;
  word-break: break-all;
}

.code-loc.bad .code-loc-v { color: #b42318; }

.code-reloc { margin-top: 10px; }

.code-no-input {
  font-size: 15px;
  letter-spacing: .5px;
}

.code-check {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.code-ck {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 9px;
  background: #f5f7fb;
  color: #8a94a6;
}

.code-ck span { font-weight: 700; }

.code-ck.on {
  background: #e8f8ef;
  color: #0b8a4b;
}

/* 码牌作业子类型勾选：横排可换行的单选 chip */
.code-sub-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 4px;
}
.code-sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  background: #f7f9fc;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all .15s ease;
}
.code-sub-chip .code-sub-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #c7cfdb;
  background: #fff;
  box-sizing: border-box;
  flex: 0 0 auto;
}
.code-sub-chip.on {
  border-color: var(--brand);
  background: #eef3ff;
  color: var(--brand);
  font-weight: 600;
}
.code-sub-chip.on .code-sub-dot {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 3px #fff;
}

/* 默认定位提示：浏览器定位到国外 / 定位失败时回退作业城市 */
.default-loc-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 12px 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff8e8;
  border: 1px solid #ffe2a8;
  color: #8a6100;
  font-size: 12px;
  line-height: 1.55;
}
.default-loc-tip span:first-child { flex: none; }

/* 现场定位是默认坐标时，必须让作业员一眼看出来 */
.code-loc.warn {
  background: #fff8e8;
  border: 1px solid #ffe2a8;
}
.code-loc.warn .code-loc-t { color: #8a6100; }

/* 列表里的作业编码 / 设备SN 标签 */
.work-code {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #eef2ff;
  color: #4b55c8;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  word-break: break-all;
}

/* 码牌作业：编码即名称的说明块 */
.code-brand-tip {
  margin-bottom: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f2f6ff;
  border: 1px solid #dfe7ff;
  color: #42507a;
  font-size: 12px;
  line-height: 1.6;
}


/* ---- 导入时勾选的「可显示项」：只展示这几项，不把 70 列全铺出来 ---- */
.tcard-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.extra-chip {
  padding: 2px 7px;
  border-radius: 6px;
  background: #f3f6fc;
  border: 1px solid #e5ebf6;
  color: #5a6782;
  font-size: 11px;
  line-height: 1.5;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mcard-extra {
  margin: 10px 0 2px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f7f9fd;
  border: 1px solid #e8edf7;
}
.extra-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7688;
}
.extra-row b {
  color: #2b3548;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}
/* 三类地图图标各用一种底色，列表里的类型字样与之对应 */
.mk-label.t1 { background: rgba(47, 107, 255, 0.95); }
.mk-label.t2 { background: rgba(232, 126, 24, 0.95); }
.mk-label.t4 { background: rgba(124, 58, 237, 0.94); }


/* ---- 前端作业地图：隐藏高德 SDK 自带的 logo 与版权行 ---- */
.amap-logo,
.amap-copyright,
.amap-logo img,
.amap-copyright a,
.amap-container > .amap-logo,
.amap-container > .amap-copyright {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}


/* ---- 收益提现 ---- */
.wd-mine-amount {
  margin-left: auto;
  margin-right: 8px;
  color: #ff7a2f;
  font-size: 12px;
  font-weight: 600;
}
.wd-alert {
  margin: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  color: #a15c00;
  font-size: 13px;
  line-height: 1.7;
}
.wd-balance {
  margin: 12px;
  padding: 18px 18px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff9a44, #ff6a2f);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 122, 47, 0.22);
}
.wd-b-label { font-size: 12px; opacity: 0.9; }
.wd-b-num { font-size: 34px; font-weight: 800; line-height: 1.35; letter-spacing: 0.5px; }
.wd-b-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 11px;
  opacity: 0.95;
}
.wd-b-row span { white-space: nowrap; }
.wd-tip {
  margin: 0 12px 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fffaf0;
  border: 1px solid #ffe4b5;
  color: #8a5a00;
  font-size: 12px;
  line-height: 1.8;
}
.wd-tip b { display: block; font-size: 13px; margin-bottom: 4px; color: #a15c00; }
.wd-tip small { display: block; margin-top: 4px; color: #a98b5c; }
.wd-field { margin-bottom: 16px; }
.wd-field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2b3548;
}
.wd-amount-row { display: flex; align-items: center; gap: 8px; }
.wd-yen { font-size: 20px; font-weight: 700; color: #ff7a2f; }
.wd-amount-input { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; }
.wd-channels { display: flex; gap: 10px; }
.wd-ch {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 6px;
  border: 1px solid #e3e9f4;
  border-radius: 10px;
  background: #fff;
  color: #5a6782;
  font-size: 13px;
  font-weight: 600;
}
.wd-ch.on { border-color: #2f6bff; background: #f0f5ff; color: #2f6bff; }
.wd-ch-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
}
.wd-ch-ico.wx { background: #07c160; }
.wd-ch-ico.ali { background: #1677ff; }
.wd-qr {
  position: relative;
  width: 150px;
  height: 150px;
  border: 1px dashed #c8d2e4;
  border-radius: 10px;
  overflow: hidden;
  background: #fafbfe;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wd-qr img { width: 100%; height: 100%; object-fit: contain; }
.wd-qr-empty { text-align: center; color: #8a94a6; font-size: 12px; line-height: 1.7; padding: 8px; }
.wd-qr-plus { font-size: 30px; line-height: 1.2; color: #b6c2d8; }
.wd-qr-empty small { display: block; margin-top: 4px; font-size: 10px; color: #a8b2c4; }
.wd-qr-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  color: #2f6bff;
  font-size: 13px;
  font-weight: 600;
}
.wd-submit { width: 100%; margin-top: 4px; }
.wd-rec {
  padding: 12px 0;
  border-bottom: 1px solid #eef1f6;
}
.wd-rec:last-child { border-bottom: 0; }
.wd-rec-hd { display: flex; justify-content: space-between; align-items: center; }
.wd-rec-hd b { font-size: 17px; color: #2b3548; }
.wd-status { padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.wd-status.s1 { background: #fff4e5; color: #d46b08; }
.wd-status.s2 { background: #e8f8ef; color: #0b8a4b; }
.wd-status.s3 { background: #ffeded; color: #d92d20; }
.wd-rec-meta { margin-top: 5px; font-size: 11px; color: #8a94a6; }
.wd-rec-note { margin-top: 6px; font-size: 11px; color: #6b7688; line-height: 1.6; }
.wd-rec-link { margin-top: 6px; font-size: 12px; color: #2f6bff; }
.wd-big {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.wd-big img { max-width: 88vw; max-height: 72vh; }
.wd-big-tip { color: #fff; font-size: 12px; opacity: 0.8; }


/* ---- 微信授权登录 ---- */
.wx-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 13px 0;
  border-radius: 12px;
  background: #07c160;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(7, 193, 96, 0.22);
}
.wx-login.dis { opacity: 0.7; }
.wx-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
}
.wx-login-tip {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  color: #9aa4b6;
  line-height: 1.6;
}

/* ---- 教程列表 ---- */
.tut-page {
  min-height: 100vh;
  padding-bottom: 76px;
  background: #f5f7fc;
}
.tut-hd {
  padding: 22px 16px 16px;
  background: linear-gradient(135deg, #2f6bff, #5a8bff);
  color: #fff;
}
.tut-hd-t { font-size: 21px; font-weight: 800; letter-spacing: 0.5px; }
.tut-hd-s { margin-top: 5px; font-size: 12px; opacity: 0.88; }
.tut-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 14px 4px;
}
.tut-tab {
  padding: 6px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6ebf5;
  color: #5a6782;
  font-size: 13px;
  font-weight: 600;
}
.tut-tab.on {
  background: #2f6bff;
  border-color: #2f6bff;
  color: #fff;
}
.tut-list { padding: 10px 12px 0; }
.tut-card {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(43, 53, 72, 0.05);
}
.tut-cover {
  position: relative;
  flex: 0 0 104px;
  width: 104px;
  height: 76px;
  border-radius: 9px;
  overflow: hidden;
  background: #eef2fb;
}
.tut-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tut-cover-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #9aa8c4;
  font-size: 12px;
  background: linear-gradient(135deg, #eaf0ff, #f6f8fd);
}
.tut-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(47, 107, 255, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.tut-badge.v { background: rgba(124, 58, 237, 0.92); }
.tut-play {
  position: absolute;
  right: 7px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tut-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tut-title {
  font-size: 14px;
  font-weight: 700;
  color: #222b3d;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tut-sum {
  margin-top: 4px;
  font-size: 12px;
  color: #7b8698;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tut-meta { margin-top: auto; padding-top: 5px; font-size: 11px; color: #a8b2c4; }
.tut-empty {
  padding: 70px 24px;
  text-align: center;
  color: #98a2b6;
  font-size: 13px;
  line-height: 1.8;
}
.tut-empty-i { font-size: 40px; margin-bottom: 10px; }
.tut-more {
  margin: 6px 12px 14px;
  padding: 11px;
  text-align: center;
  border-radius: 10px;
  background: #fff;
  color: #2f6bff;
  font-size: 13px;
  font-weight: 600;
}

/* ---- 教程详情 ---- */
.td-page { min-height: 100vh; background: #fff; padding-bottom: 24px; }
.td-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #f0f3f9;
}
.td-back { font-size: 26px; line-height: 1; color: #2b3548; padding: 0 6px; }
.td-hd-t { font-size: 15px; font-weight: 700; color: #2b3548; }
.td-body { padding: 16px 16px 0; }
.td-title { font-size: 19px; font-weight: 800; color: #1f2733; line-height: 1.45; }
.td-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
  font-size: 11px;
  color: #98a2b6;
}
.td-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: #eef3ff;
  color: #2f6bff;
  font-weight: 600;
}
.td-tag.v { background: #f3edff; color: #7c3aed; }
.td-video {
  width: 100%;
  border-radius: 12px;
  background: #000;
  margin-bottom: 14px;
}
.td-content {
  font-size: 15px;
  line-height: 1.9;
  color: #333d4f;
  word-break: break-word;
}
.td-content img { max-width: 100%; height: auto; border-radius: 8px; }
.td-content p { margin: 0 0 12px; }
.td-content h1, .td-content h2, .td-content h3 { font-size: 16px; margin: 18px 0 8px; color: #1f2733; }
.td-content ul, .td-content ol { padding-left: 20px; }
.td-tip {
  margin: 10px 0;
  padding: 11px 13px;
  border-radius: 9px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  color: #a15c00;
  font-size: 12px;
  line-height: 1.7;
}
.td-loading { padding: 90px 24px; text-align: center; color: #98a2b6; font-size: 13px; }
.td-back-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 20px;
  border-radius: 18px;
  background: #2f6bff;
  color: #fff;
  font-size: 13px;
}

/* ---- 工单客服 ---- */
/* 原来 74px 时悬浮球压在底部任务卡片上，往上抬 38px（约 1cm） */
.kf-fab {
  position: fixed;
  right: 14px;
  bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f6bff, #5a8bff);
  color: #fff;
  box-shadow: 0 6px 18px rgba(47, 107, 255, 0.38);
}
.kf-fab-ico { font-size: 19px; line-height: 1; }
.kf-fab-t { margin-top: 2px; font-size: 10px; font-weight: 600; }
.tk-page { min-height: 100vh; background: #f5f7fc; padding-bottom: 26px; }
.tk-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 14px 12px;
  background: #fff;
  border-bottom: 1px solid #f0f3f9;
}
.tk-back { font-size: 26px; line-height: 1; color: #2b3548; padding: 0 6px; }
.tk-hd-t { font-size: 16px; font-weight: 700; color: #2b3548; }
.tk-kf-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eaf1ff, #f7faff);
  border: 1px solid #dbe6ff;
}
.tk-kf-l { flex: 1; min-width: 0; }
.tk-kf-t { font-size: 14px; font-weight: 700; color: #22314d; }
.tk-kf-s { margin-top: 4px; font-size: 11px; color: #6b7a94; line-height: 1.6; }
.tk-kf-btn {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 16px;
  background: #2f6bff;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.tk-form {
  margin: 0 12px 12px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
}
.tk-label { margin: 10px 0 8px; font-size: 13px; font-weight: 700; color: #2b3548; }
.tk-label:first-child { margin-top: 0; }
.tk-must { color: #f04438; font-weight: 600; font-size: 11px; }
.tk-opt { color: #a0a9bb; font-weight: 400; font-size: 11px; }
.tk-textarea {
  width: 100%;
  min-height: 104px;
  padding: 11px 12px;
  border: 1px solid #e3e9f4;
  border-radius: 10px;
  background: #fafbfe;
  font-size: 13px;
  line-height: 1.7;
  color: #2b3548;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}
.tk-count { margin-top: 4px; text-align: right; font-size: 10px; color: #b3bccd; }
.tk-imgs { display: flex; gap: 9px; flex-wrap: wrap; }
.tk-img {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 9px;
  overflow: hidden;
  background: #eef2fb;
}
.tk-img img { width: 100%; height: 100%; object-fit: cover; }
.tk-del {
  position: absolute;
  right: 0;
  top: 0;
  width: 19px;
  height: 19px;
  line-height: 17px;
  text-align: center;
  border-bottom-left-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
}
.tk-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border: 1px dashed #c8d2e4;
  border-radius: 9px;
  background: #fafbfe;
  color: #9aa8c4;
  font-size: 20px;
}
.tk-add small { font-size: 10px; margin-top: 2px; }
.tk-up { font-size: 11px; color: #2f6bff; }
.tk-file { display: none; }
.tk-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e3e9f4;
  border-radius: 10px;
  background: #fafbfe;
  font-size: 13px;
  color: #2b3548;
  box-sizing: border-box;
  font-family: inherit;
}
.tk-submit {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  border: 0;
  border-radius: 11px;
  background: #2f6bff;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.tk-submit[disabled] { opacity: 0.6; }
.tk-list-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 16px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #2b3548;
}
.tk-refresh { font-size: 11px; color: #2f6bff; font-weight: 500; }
.tk-empty { padding: 30px 16px; text-align: center; color: #98a2b6; font-size: 12px; }
.tk-list { padding: 0 12px; }
.tk-item { margin-bottom: 10px; padding: 12px; border-radius: 12px; background: #fff; }
.tk-item-hd { display: flex; justify-content: space-between; align-items: center; }
.tk-no { font-size: 12px; font-weight: 700; color: #3c4658; }
.tk-st { padding: 2px 8px; border-radius: 7px; font-size: 10px; font-weight: 600; }
.tk-st.s1 { background: #fff4e5; color: #d46b08; }
.tk-st.s2 { background: #e8f8ef; color: #0b8a4b; }
.tk-st.s3 { background: #eef1f6; color: #6b7688; }
.tk-item-c { margin-top: 7px; font-size: 13px; line-height: 1.7; color: #2b3548; word-break: break-word; }
.tk-item-imgs { display: flex; gap: 6px; margin-top: 8px; }
.tk-item-imgs img { width: 54px; height: 54px; border-radius: 7px; object-fit: cover; }
.tk-item-meta { margin-top: 7px; font-size: 10px; color: #a8b2c4; }
.tk-reply {
  margin-top: 9px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f3f7ff;
  border-left: 3px solid #2f6bff;
}
.tk-reply-h { font-size: 11px; color: #2f6bff; font-weight: 600; }
.tk-reply-c { margin-top: 4px; font-size: 12px; color: #3c4658; line-height: 1.7; word-break: break-word; }
.tk-qr-mask {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tk-qr-box {
  width: 250px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.tk-qr-box img { width: 218px; height: 218px; object-fit: contain; }
.tk-qr-tip { margin-top: 8px; font-size: 12px; color: #6b7688; }
.tk-qr-close {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: #eef2fb;
  color: #3c4658;
  font-size: 13px;
  font-weight: 600;
}

/* ---- 绑定手机号 ---- */
.bind-tip { margin-left: auto; margin-right: 6px; font-size: 11px; color: #f79009; }
.bind-mask {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(20, 26, 38, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.bind-box {
  width: 100%;
  max-width: 330px;
  padding: 20px 18px 14px;
  border-radius: 16px;
  background: #fff;
}
.bind-h { font-size: 16px; font-weight: 800; color: #1f2733; }
.bind-s { margin: 7px 0 14px; font-size: 11px; color: #8a94a6; line-height: 1.7; }
.bind-input {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #e3e9f4;
  border-radius: 10px;
  background: #fafbfe;
  font-size: 14px;
  color: #2b3548;
  box-sizing: border-box;
  font-family: inherit;
}
.bind-btn {
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: #2f6bff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.bind-cancel { margin-top: 12px; text-align: center; font-size: 12px; color: #8a94a6; }


/* ---- 地图路线规划：当前位置点 + 路线信息条 ---- */
.me-mk {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(47, 107, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}
.me-mk i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2f6bff;
  border: 2px solid #fff;
  box-sizing: border-box;
}
.route-card {
  position: absolute;
  left: 12px;
  right: 58px;
  top: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 18px rgba(23, 43, 99, 0.16);
  font-size: 13px;
  color: #2b3548;
  line-height: 1.3;
}
.route-card b { color: #2f6bff; font-size: 14px; }
.route-card .rc-mode {
  flex: none;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef3ff;
  color: #2f6bff;
  font-size: 11px;
  font-weight: 600;
}
.route-card .rc-tip {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8a94a6;
  font-size: 12px;
}
.route-card .rc-close {
  flex: none;
  margin-left: auto;
  color: #a8b0bf;
  font-size: 13px;
  padding: 0 2px;
}
.rc-spin {
  width: 12px;
  height: 12px;
  border: 2px solid #d6e0f7;
  border-top-color: #2f6bff;
  border-radius: 50%;
  animation: rc-spin 0.8s linear infinite;
}
@keyframes rc-spin { to { transform: rotate(360deg); } }


/* ---- 邀请有奖 ---- */
.inv-cta {
  margin: 0 14px 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #fff4e8, #ffe9dc);
  border: 1px solid #ffdfc9;
}
.inv-cta-ico { font-size: 22px; flex: none; }
.inv-cta-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.inv-cta-txt b { font-size: 15px; color: #a24a12; }
.inv-cta-txt span { font-size: 12px; color: #b5744c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-cta-go {
  flex: none;
  font-size: 12px;
  color: #fff;
  background: var(--accent);
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: 600;
}

.inv-hero {
  margin: 14px;
  padding: 22px 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2f6bff, #5b8cff 60%, #7aa2ff);
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.28);
}
.inv-hero-ico { font-size: 30px; }
.inv-hero-amount { margin-top: 6px; font-size: 38px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.inv-hero-amount small { font-size: 18px; font-weight: 600; margin-right: 2px; }
.inv-hero-title { margin-top: 6px; font-size: 14px; font-weight: 600; opacity: 0.98; }
.inv-hero-sub { margin-top: 6px; font-size: 12px; opacity: 0.82; line-height: 1.7; }

.inv-code-card {
  margin: 0 14px 12px;
  padding: 18px 16px 16px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
.ic-label { font-size: 12px; color: var(--sub); }
.ic-code {
  margin: 8px 0 4px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--brand);
  font-family: "SF Mono", Menlo, Consolas, monospace;
}
.ic-btns { display: flex; gap: 10px; margin-top: 12px; }
.ic-btns .btn { flex: 1; }
.ic-hint { margin-top: 10px; font-size: 11px; color: #a8b0bf; line-height: 1.7; }

.inv-off {
  margin: 0 14px 12px;
  padding: 26px 16px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--ink-2);
}
.inv-off-sub { margin-top: 6px; font-size: 12px; color: var(--sub); }

.inv-stat {
  margin: 0 14px 12px;
  padding: 16px 10px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.inv-stat-item { flex: 1; text-align: center; }
.inv-stat-item b { display: block; font-size: 22px; font-weight: 700; }
.inv-stat-item span { font-size: 12px; color: var(--sub); }
.inv-stat-line { width: 1px; height: 30px; background: var(--line); }

.inv-tip {
  margin: 0 14px 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: #2b4fbe;
  font-size: 12px;
  line-height: 1.7;
}

.inv-section {
  margin: 0 14px 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.inv-section .section-title { margin-bottom: 10px; }
.inv-empty { padding: 14px 0; text-align: center; font-size: 12px; color: var(--sub); }
.inv-record {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.inv-record:last-child { border-bottom: 0; }
.ir-l { flex: 1; min-width: 0; }
.ir-l b { font-size: 14px; font-weight: 600; }
.ir-l span { display: block; font-size: 11px; color: var(--sub); margin-top: 3px; }
.ir-r { font-size: 15px; font-weight: 700; color: var(--accent); }

.inv-bind { display: flex; gap: 10px; align-items: center; }
.inv-bind .plain-input { flex: 1; }
.inv-bind .btn { flex: none; padding: 0 18px; height: 42px; }

.inv-note {
  margin: 0 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #fbfcff;
  border: 1px dashed #dbe3f5;
  font-size: 12px;
  color: var(--sub);
  line-height: 2;
}
.inv-note-t { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }

/* ---- 邀请海报：生成按钮 + 弹层 ---- */
.poster-btn {
  width: 100%;
  margin-top: 12px;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 15px;
  font-weight: 600;
}
.poster-btn:active { transform: scale(0.99); }

.poster-pop { background: transparent !important; }

.poster-wrap {
  width: 290px;
  max-width: 82vw;
  background: #fff;
  border-radius: 14px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.poster-img {
  width: 100%;
  border-radius: 8px;
  display: block;
  background: #f3f4f8;
}
.poster-loading {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sub);
  font-size: 13px;
}
.poster-tip {
  margin: 10px 0 12px;
  font-size: 12px;
  color: var(--sub);
  text-align: center;
  line-height: 1.6;
}
/* 弹层里的关闭按钮：脱离 .btn 的 flex 拉伸/窄条问题，做成整宽圆角按钮 */
.poster-wrap .btn.ghost {
  flex: 0 0 auto;
  width: 100%;
  height: 44px;
  border: 1.5px solid #e6e9f1;
  border-radius: 12px;
  background: #f3f5fa;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}
.poster-wrap .btn.ghost:active { opacity: 0.82; }


/* ---- 动销完成选项 ---- */
.sale-opts { display: flex; gap: 10px; }
.sale-opt {
  flex: 1;
  min-width: 0;
  padding: 12px 12px 11px;
  border-radius: 10px;
  border: 1.5px solid #e6e9f1;
  background: #fbfcff;
  transition: all 0.16s;
}
.sale-opt b { display: block; font-size: 14px; color: var(--ink); }
.sale-opt span { display: block; margin-top: 4px; font-size: 11px; color: var(--sub); line-height: 1.6; }
.sale-opt.on {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 2px 10px rgba(47, 107, 255, 0.12);
}
.sale-opt.on b { color: var(--brand-deep); }
.sale-opt.on span { color: #5b76b8; }

.sale-undone-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff4e5;
  color: #b25f00;
  font-size: 10px;
  vertical-align: 1px;
}

/* ==========================================================
   顺路接单：同方向 + 由近到远的一串任务
   ========================================================== */
.vb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.batch-entry {
  flex: none;
  border: 1px solid #dbe4ff;
  background: #fff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 9px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.08);
}
.batch-entry.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* 路线上的站点序号圆牌 */
.seq-mk {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff8a00;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(255, 122, 47, 0.45);
}

.batch-panel {
  position: fixed;
  left: 10px;
  right: 10px;
  /* 底部留给 vant tabbar，避免把「首页/教程/我的」盖住 */
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  /* 高于右下角工单悬浮球（z-index 90），不然它会压在「一键认领」按钮上 */
  z-index: 100;
  /* 别把地图全盖住：上半屏还能看见那条橙色折线和序号 */
  max-height: 46vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.985);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(23, 43, 99, 0.22);
  overflow: hidden;
}

.bp-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.bp-hd b { font-size: 14px; }
.bp-quota {
  font-size: 11px;
  color: var(--sub);
  margin-left: auto;
}
.bp-close {
  font-size: 15px;
  color: var(--sub);
  padding: 0 2px 0 6px;
  line-height: 1;
}

.bp-dirs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  overflow-x: auto;
  flex: none;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.bp-dirs::-webkit-scrollbar { display: none; }
.bp-dirs span {
  flex: none;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 20px;
  background: #f1f4fa;
  color: var(--ink-2);
  white-space: nowrap;
}
.bp-dirs span.on {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.bp-sum {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-2);
  background: #fff8f0;
  flex: none;
}
.bp-sum b { color: #d16500; }
.bp-road {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #ffd2a8;
  background: #fff;
  color: #d16500;
  font-size: 11px;
  white-space: nowrap;
}
.bp-empty {
  padding: 16px 12px;
  font-size: 12px;
  color: var(--sub);
  text-align: center;
  line-height: 1.7;
}

.bp-list {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.bp-stop {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.bp-stop:active { background: #f7f9ff; }
.bp-no {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff8a00;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.bp-stxt { flex: 1 1 auto; min-width: 0; }
.bp-stxt b {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bp-sub {
  font-size: 10px;
  color: var(--sub);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bp-sright { flex: none; text-align: right; }
.bp-sright b { display: block; font-size: 13px; color: #d16500; }
.bp-sright span { font-size: 10px; color: var(--brand); }

.bp-foot {
  display: flex;
  gap: 8px;
  padding: 9px 12px 11px;
  border-top: 1px solid var(--line);
  flex: none;
}
.bp-foot .btn { flex: 1; padding: 9px 6px; font-size: 13px; }

/* ---- 同坐标多类型点位：合并成一个「簇」标记，避免 7 个图标叠在一起只看见最后一个 ---- */
.mk-cluster {
  width: auto;
  height: auto;
  flex-direction: column;
  align-items: center;
}
.mk-dots {
  display: flex;
  flex-wrap: wrap;              /* 每行 5 个，7~10 种作业自动换到第二行，全部图标都看得见 */
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 98px;
  gap: 2px;
  padding: 2px 3px;
  background: #fff;
  border: 1px solid rgba(20, 40, 90, 0.1);
  border-radius: 11px;
  box-shadow: 0 1px 6px rgba(20, 40, 90, 0.22);
}
.mk-dot {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}
.mk-dot-more { background: #4a5568; font-size: 8px; }
.mk-cluster .mk-label {
  position: static;
  transform: none;
  margin-top: 2px;
  background: rgba(38, 52, 78, 0.9);
  font-size: 9px;
}
/* 平台指派任务：图标右上一枚紫色小横条，直接写「平台指派」四个字，
   比单个「派」字更明确；加价仍然写在下面的类型标签里 */
.mk-assign {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 0 4px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  line-height: 14px;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(76, 29, 149, 0.35);
  pointer-events: none;
  z-index: 2;
}

/* ---- 点簇标记后弹出的「这家店有哪几种作业」面板 ---- */
.sp-panel {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  z-index: 110;
  max-height: 54vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 -6px 30px rgba(20, 40, 90, 0.22);
  overflow: hidden;
}
.sp-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 9px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.sp-hd b { flex: 1; font-size: 14px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-hd span { font-size: 11px; color: var(--sub); }
.sp-close { font-size: 18px; color: var(--sub); padding: 0 2px; }
.sp-list { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
.sp-row { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-bottom: 1px solid #f2f4f9; }
.sp-ico { flex: none; width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }
.sp-txt { flex: 1; min-width: 0; }
.sp-txt b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-txt span { display: block; font-size: 10px; color: var(--sub); margin-top: 2px; }
.sp-assign { color: #6d28d9; font-weight: 600; }
.sp-price { flex: none; font-size: 13px; font-weight: 700; color: #d16500; }
.sp-price i { display: block; font-size: 9px; font-style: normal; color: #12b76a; font-weight: 600; text-align: right; }
.sp-row .btn { flex: none; padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.sp-foot { display: flex; gap: 8px; padding: 9px 12px 11px; border-top: 1px solid var(--line); flex: none; }
.sp-foot .btn { flex: 1; font-size: 13px; }
.tag-assign { background: #f3ecff !important; color: #6d28d9 !important; border: 1px solid #ddd0ff; }
.assign-tip {
  margin: 5px 12px 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff7e8;
  border: 1px solid #ffe1ad;
  color: #a76200;
  font-size: 11px;
  line-height: 1.5;
}
.assign-tip b { color: #d16500; }


/* ==================== v=21 路线规划：自己选点位 → 规划路线 → 开始导航 ==================== */
.bp-stage {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px 2px; font-size: 11px; color: #98a2b3;
}
.bp-stage span { white-space: nowrap; }
.bp-stage span.on { color: var(--brand); font-weight: 700; }
.bp-stage i { font-style: normal; color: #c9d0dd; }
.bp-tip {
  margin: 6px 12px 2px; padding: 7px 9px; border-radius: 8px;
  background: #f2f6ff; color: #4a5b7a; font-size: 11px; line-height: 1.6;
}
.bp-dirs .bp-dir-label { color: #98a2b3; background: transparent; font-size: 10px; padding-right: 2px; }
.bp-foot-sub { padding-top: 0 !important; }
.bp-foot-sub .btn { background: #f7f9ff; color: #6b7688; border: 1px solid #e6eaf3; font-size: 12px; }

/* 地图上每个点位的勾选角标 */
.mk-pick {
  position: absolute; top: -8px; right: -9px; z-index: 3;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: #fff; color: var(--brand);
  border: 2px solid var(--brand); box-sizing: border-box;
  font-size: 11px; line-height: 14px; font-style: normal; font-weight: 700; text-align: center;
}
.mk-picked .mk-pick { background: var(--brand); color: #fff; }
.mk-picked .mk-b { box-shadow: 0 0 0 3px rgba(47,107,255,.22); }
.mk-picked .mk-label { background: var(--brand) !important; color: #fff; }
.mk-unpicked { opacity: .92; }
.mk-cluster .mk-pick { top: -9px; right: -9px; }

/* 列表卡片上的勾选圈 */
.tcard { position: relative; }
.tcard-pick {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #cbd4e4; background: #fff; color: #8a94a6;
  font-size: 14px; font-weight: 700; line-height: 20px; text-align: center; box-sizing: border-box;
}
.tcard-pick.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.tcard-picked { border-color: var(--brand); background: #f7faff; }
.tcard-picked .tcard-head { padding-right: 34px; }
.emp-chip {
  display: inline-block; padding: 2px 7px; margin-right: 6px;
  border-radius: 10px; background: #eef4ff; color: #2f6bff; font-size: 10px; font-weight: 600;
}

/* 释放任务 */
.release-link {
  margin: 0 14px; padding: 10px 12px; border-radius: 10px;
  background: #fff5f3; border: 1px solid #ffded6; color: #c2410c;
  font-size: 12px; line-height: 1.6; text-align: center;
}
.release-link:active { background: #ffe9e2; }
.mini-btn.danger { background: #fff2f0; color: #d92d20; border: 1px solid #ffd5cf; }

/* ==================== v=21 物料商城 ==================== */
.mall-page { padding-bottom: 118px; }
.mall-tabs {
  display: flex; gap: 8px; padding: 10px 14px 4px; position: sticky; top: 46px; z-index: 5;
  background: var(--bg, #f6f8fc);
}
.mall-tabs span {
  flex: 1; text-align: center; padding: 8px 6px; border-radius: 10px;
  background: #fff; border: 1px solid #e6eaf3; font-size: 13px; color: #6b7688;
}
.mall-tabs span.on { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.mall-tabs i { font-style: normal; font-size: 10px; opacity: .85; }
.mall-body { padding: 8px 12px 0; }
.mall-tip {
  padding: 9px 11px; border-radius: 10px; background: #fff7e8; border: 1px solid #ffe1ad;
  color: #a76200; font-size: 11px; line-height: 1.7; margin-bottom: 10px;
}
.mall-note {
  margin: 14px 0 10px; padding: 10px 12px; border-radius: 10px;
  background: #f1f5ff; color: #5a6782; font-size: 11px; line-height: 1.8;
}
.mall-note b { color: #2f6bff; }
.mall-note span { display: block; margin-top: 4px; }
.mall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mg-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e9edf5; }
.mg-img {
  height: 118px; background: #f3f6fc; display: flex; align-items: center;
  justify-content: center; font-size: 40px; overflow: hidden;
}
.mg-img img { width: 100%; height: 100%; object-fit: cover; }
.mg-info { padding: 9px 10px 11px; }
.mg-info > b { display: block; font-size: 13px; color: #1f2733; }
.mg-detail {
  font-size: 10px; color: #98a2b3; line-height: 1.5; height: 30px; overflow: hidden; margin-top: 3px;
}
.mg-price { color: #e2540c; font-size: 17px; font-weight: 800; margin-top: 4px; }
.mg-price small { font-size: 11px; }
.mg-price i { font-style: normal; font-size: 10px; color: #98a2b3; font-weight: 400; }
.mg-ops { display: flex; align-items: center; gap: 8px; margin-top: 8px; height: 28px; }
.mg-add {
  flex: 1; height: 27px; border: 0; border-radius: 14px; background: var(--brand);
  color: #fff; font-size: 11px; font-weight: 600;
}
.mg-step {
  width: 25px; height: 25px; border-radius: 50%; border: 1px solid #d9e0ee;
  background: #fff; color: #5a6782; font-size: 17px; line-height: 22px; text-align: center;
}
.mg-step.add { background: var(--brand); color: #fff; border-color: var(--brand); }
.mg-qty { min-width: 18px; text-align: center; font-size: 13px; }

.mall-cartbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  z-index: 20; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #e6eaf3; border-radius: 26px;
  box-shadow: 0 6px 20px rgba(30,50,90,.14); padding: 7px 8px 7px 14px;
}
.mcb-left { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.mcb-ico { position: relative; font-size: 22px; }
.mcb-ico i {
  position: absolute; top: -4px; right: -7px; min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 8px; background: #f04438; color: #fff; font-size: 10px;
  font-style: normal; line-height: 16px; text-align: center;
}
.mcb-left b { color: #e2540c; font-size: 17px; }
.mcb-left small { color: #98a2b3; font-size: 10px; }
.mcb-btn {
  flex: none; border: 0; background: var(--brand); color: #fff;
  border-radius: 20px; padding: 9px 20px; font-size: 13px; font-weight: 600;
}
.mall-cart-mask {
  position: fixed; inset: 0; background: rgba(20,30,50,.42); z-index: 30;
  display: flex; align-items: flex-end;
}
.mall-cart-box {
  width: 100%; background: #fff; border-radius: 16px 16px 0 0;
  padding: 12px 14px calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 55vh; overflow-y: auto;
}
.mcb-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mcb-hd b { flex: 1; font-size: 14px; }
.mcb-hd span { font-size: 12px; color: #6b7688; }
.mcb-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f0f2f7; font-size: 12px;
}
.mcb-row > span:first-child { flex: 1; }

.mall-sec-title { font-size: 13px; font-weight: 700; color: #1f2733; margin: 12px 0 8px; }
.co-item {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid #e9edf5; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px;
}
.co-item img, .co-noimg {
  width: 42px; height: 42px; border-radius: 8px; object-fit: cover;
  background: #f3f6fc; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.co-txt { flex: 1; min-width: 0; }
.co-txt b { display: block; font-size: 13px; }
.co-txt span { font-size: 11px; color: #98a2b3; }
.co-sub { color: #e2540c; font-size: 14px; }
.co-form { background: #fff; border: 1px solid #e9edf5; border-radius: 10px; padding: 4px 12px; }
.co-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2f4f9; }
.co-row:last-child { border-bottom: 0; }
.co-row label { flex: none; width: 70px; font-size: 12px; color: #5a6782; }
.co-row input {
  flex: 1; border: 0; outline: 0; font-size: 13px; color: #1f2733; background: transparent; min-width: 0;
}
.co-deliver span {
  padding: 5px 12px; border-radius: 14px; border: 1px solid #dfe5f1;
  font-size: 12px; color: #6b7688; margin-right: 8px;
}
.co-deliver span.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.co-total {
  display: flex; align-items: baseline; gap: 6px; margin-top: 14px; padding: 12px;
  background: #fff; border-radius: 10px; border: 1px solid #e9edf5; font-size: 13px;
}
.co-total b { color: #e2540c; font-size: 20px; }
.co-total span { margin-left: auto; color: #98a2b3; font-size: 11px; }

.mo-card {
  background: #fff; border: 1px solid #e9edf5; border-radius: 12px;
  padding: 12px; margin-bottom: 10px;
}
.mo-hd { display: flex; align-items: center; gap: 8px; }
.mo-hd b { flex: 1; font-size: 13px; }
.mo-st { font-size: 10px; padding: 2px 7px; border-radius: 8px; background: #eef4ff; color: #2f6bff; }
.mo-st.st2, .mo-st.st3, .mo-st.st4 { background: #eafaf1; color: #0b8a4b; }
.mo-st.st9 { background: #f3f4f6; color: #98a2b3; }
.mo-time { font-size: 11px; color: #98a2b3; margin-top: 4px; }
.mo-item {
  display: flex; gap: 8px; font-size: 12px; color: #5a6782;
  padding: 7px 0; border-bottom: 1px dashed #f0f2f7;
}
.mo-item span:first-child { flex: 1; }
.mo-item b { color: #1f2733; }
.mo-ft { display: flex; align-items: center; margin-top: 8px; font-size: 12px; }
.mo-ft b { color: #e2540c; }
.mo-sent { margin-left: auto; color: #0b8a4b; font-size: 11px; }
.mo-addr { font-size: 11px; color: #98a2b3; margin-top: 6px; line-height: 1.5; }
.mo-card .mini-btn { margin-top: 8px; }

/* 作业条件：后台按作业类型配的多选清单，逐条完成后勾选 */
.cond-list { display: flex; flex-direction: column; gap: 8px; }
.cond-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 42px; padding: 9px 12px;
  background: #f8fafc; border: 1px solid #e9edf5; border-radius: 10px;
  cursor: pointer; transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.cond-item:active { background: #eef4ff; }
.cond-box {
  flex: none; width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid #c7d0e0; background: #fff; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; line-height: 1;
}
.cond-txt { flex: 1; font-size: 13px; color: #33405a; line-height: 1.45; word-break: break-all; }
.cond-item.on { background: #eef7f1; border-color: #8fd6ae; }
.cond-item.on .cond-box { background: #12b76a; border-color: #12b76a; }
.cond-item.on .cond-txt { color: #0b6b3a; }

/* v=30 一键查看：我提交、审核通过并发布出来的任务 */
.mine-entry {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 14px 0; padding: 9px 11px;
  background: #f4f8ff; border: 1px solid #dbe7ff; border-radius: 10px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.mine-entry.on { background: #eef7f1; border-color: #b7e4c9; }
.mve-ico { flex: none; font-size: 15px; }
.mve-txt { flex: 1; min-width: 0; font-size: 12px; color: #4b5a75; line-height: 1.35; }
.mve-btn { flex: none; font-size: 12px; font-weight: 700; color: var(--brand); }
.mine-entry.on .mve-btn { color: #0b8a4b; }
.tcard-mine { margin-top: 6px; font-size: 11px; color: #0b8a4b; line-height: 1.45; }
/* 一键查看里「平台指派给我」那一行，跟「我发布」的绿色区分开 */
.tcard-mine.tcard-assign { color: #6d28d9; }
/* 码牌作业页右上角的一键查看 */
.code-onekey { font-size: 13px; color: var(--brand); font-weight: 600; padding: 4px 2px; }

/* ---------- v=34 我的页头像 / 设置 ---------- */
.mine-set {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 12px;
  z-index: 3;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.avatar-img {
  display: block;
  object-fit: cover;
  background: #fff;
}
.set-page { background: #f5f7fb; min-height: 100vh; }
.set-card {
  margin: 12px 14px;
  padding: 2px 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.set-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.set-avatar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.set-avatar-txt b { font-size: 15px; color: #1d2939; }
.set-avatar-txt span { font-size: 12px; color: #8a94a6; }
.set-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f2f7;
  font-size: 14px;
  color: #1d2939;
}
.set-line > span:first-child { width: 76px; flex: none; color: #667085; }
.set-line input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: right;
  font-size: 14px;
  color: #1d2939;
}
.set-line b { flex: 1; text-align: right; color: #0b8a4b; }
.set-tip { padding: 10px 0 14px; font-size: 12px; color: #98a2b3; line-height: 1.8; }
.set-save {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.set-save:disabled { opacity: 0.6; }

/* ================= v=37 手机端管理台（我的 → 管理员入口） ================= */
.ad-page {
  min-height: 100vh;
  background: #f4f6fb;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* 顶部导航：状态栏 + 原生分享按钮都浮在 webview 之上，必须让出安全区 */
.ad-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: calc(13px + env(safe-area-inset-top, 0px)) 14px 12px;
  background: #fff;
  border-bottom: 1px solid #eef1f7;
  position: sticky;
  top: 0;
  z-index: 20;
}
.ad-back { font-size: 26px; line-height: 1; color: #2b3548; padding: 0 6px; }
.ad-hd-t { font-size: 16px; font-weight: 700; color: #1d2939; }
.ad-hd-r { margin-left: auto; font-size: 12px; color: #8a94a6; }

/* ---------- 登录 ---------- */
.ad-login {
  margin: 22px 16px 0;
  padding: 26px 20px 22px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(31, 63, 130, 0.07);
  text-align: center;
}
.ad-login-ico {
  width: 58px; height: 58px; margin: 0 auto 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2f6bff, #6e9bff);
  color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.ad-login-t { font-size: 19px; font-weight: 800; color: #1d2939; letter-spacing: 0.5px; }
.ad-login-s { margin: 8px 2px 18px; font-size: 12.5px; line-height: 1.8; color: #7a8699; text-align: left; }
.ad-input {
  width: 100%;
  height: 46px;
  margin-bottom: 10px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid #e3e8f2;
  border-radius: 10px;
  background: #fafbfe;
  font-size: 15px;
  color: #1d2939;
  outline: none;
}
.ad-input:focus { border-color: #2f6bff; background: #fff; }
.ad-btn {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f6bff, #5a8bff);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}
.ad-btn:disabled { opacity: 0.62; }
.ad-alt { margin-top: 14px; font-size: 13px; color: #2f6bff; }
.ad-login-tip { margin-top: 20px; font-size: 11.5px; line-height: 1.9; color: #98a2b3; text-align: left; }

/* ---------- 看板 ---------- */
.ad-top {
  display: flex;
  align-items: center;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 18px 46px;
  background: linear-gradient(160deg, #2f6bff, #4f86ff 60%, #7ba6ff);
  color: #fff;
}
.ad-top-l { flex: 1; min-width: 0; }
.ad-hi { font-size: 19px; font-weight: 800; }
.ad-hi-s { margin-top: 4px; font-size: 12px; opacity: 0.86; }
.ad-exit {
  flex: none;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12.5px;
}

.ad-todo {
  display: flex;
  gap: 8px;
  margin: -34px 12px 0;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(31, 63, 130, 0.08);
}
.ad-todo-i {
  flex: 1;
  text-align: center;
  padding: 6px 0;
}
.ad-todo-i b { display: block; font-size: 20px; color: #e5484d; font-weight: 800; }
.ad-todo-i span { font-size: 11.5px; color: #6b7688; }

.ad-card {
  margin: 12px;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(31, 63, 130, 0.05);
}
.ad-card-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1d2939;
}
.ad-card-s { margin-left: auto; font-size: 11.5px; font-weight: 400; color: #98a2b3; }

.ad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 6px; }
.ad-g { text-align: center; padding: 4px 0; }
.ad-g b { display: block; font-size: 17px; color: #1d2939; font-weight: 800; }
.ad-g span { font-size: 11.5px; color: #8a94a6; }

.ad-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ad-m {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border-radius: 12px;
  background: #f7f9fe;
  font-size: 12.5px;
  color: #33415c;
}
.ad-m:active { background: #eaf0ff; }
.ad-m-ico { font-size: 20px; line-height: 1; }
.ad-m-n { font-size: 12.5px; }
.ad-m-b {
  position: absolute;
  top: 6px; right: 8px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #f04438;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
.ad-foot { padding: 16px 0 6px; text-align: center; font-size: 11px; color: #b9c0cd; }

/* ---------- 列表 ---------- */
.ad-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ad-tabs::-webkit-scrollbar { display: none; }
.ad-tab {
  flex: none;
  padding: 7px 13px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e8ecf5;
  font-size: 13px;
  color: #56637a;
}
.ad-tab.on { background: #2f6bff; border-color: #2f6bff; color: #fff; font-weight: 700; }
.ad-tab b { margin-left: 4px; font-size: 11px; opacity: 0.8; }

.ad-search { display: flex; gap: 8px; padding: 10px 12px 2px; }
.ad-search-in {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e8ecf5;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  outline: none;
}
.ad-search-b {
  flex: none;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #2f6bff;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}

.ad-list { padding: 10px 12px 0; }
.ad-item {
  margin-bottom: 10px;
  padding: 12px 13px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(31, 63, 130, 0.05);
}
.ad-it-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ad-it-t {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #1d2939;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-tag {
  flex: none;
  padding: 2px 8px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 16px;
  background: #eef2f8;
  color: #667085;
}
.ad-c-ok { background: #e8f7ef; color: #0b8a4b; }
.ad-c-warn { background: #fff5e6; color: #b45309; }
.ad-c-bad { background: #fdecec; color: #c0281c; }
.ad-c-blue { background: #eaf0ff; color: #2f6bff; }
.ad-c-orange { background: #fff1e6; color: #c2410c; }
.ad-c-gray { background: #eef2f8; color: #667085; }

.ad-it-s { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: #6b7688; word-break: break-all; }
.ad-it-m { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: #98a2b3; }
.ad-it-img { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.ad-it-img img {
  flex: none;
  width: 72px; height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #f2f4f9;
}

.ad-it-a {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #eef1f7;
}
.ad-ab {
  flex: 1;
  min-width: 78px;
  height: 36px;
  border: 1px solid #e3e8f2;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  color: #33415c;
  font-weight: 600;
}
.ad-ab:disabled { opacity: 0.55; }
.ad-ab-ok { background: #2f6bff; border-color: #2f6bff; color: #fff; }
.ad-ab-bad { background: #fff; border-color: #f6c9c7; color: #c0281c; }
.ad-ab-plain { background: #f7f9fe; }

.ad-more, .ad-loading, .ad-empty {
  padding: 18px 0;
  text-align: center;
  font-size: 12.5px;
  color: #98a2b3;
}
.ad-more { color: #2f6bff; }

/* ---------- 弹层 ---------- */
.ad-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(17, 24, 39, 0.45);
  display: flex;
  align-items: flex-end;
}
.ad-sheet {
  width: 100%;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-sizing: border-box;
}
.ad-sheet-h { font-size: 15.5px; font-weight: 700; color: #1d2939; margin-bottom: 12px; }
.ad-sheet-in, .ad-sheet-ta {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  margin-bottom: 10px;
  border: 1px solid #e3e8f2;
  border-radius: 10px;
  background: #fafbfe;
  font-size: 14px;
  color: #1d2939;
  outline: none;
  font-family: inherit;
}
.ad-sheet-ta { height: 118px; resize: none; line-height: 1.7; }
.ad-sheet-chk { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #6b7688; line-height: 1.6; }
.ad-sheet-chk input { margin-top: 2px; }
.ad-sheet-b { display: flex; gap: 10px; margin-top: 14px; }
.ad-sheet-b .ad-ab { height: 44px; }

.ad-img-mask {
  position: fixed;
  inset: 0;
  z-index: 320;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ad-img-mask img { max-width: 100%; max-height: 100%; object-fit: contain; }
