/**
 * 星子提报 · 样式。视觉照接单端（jiedan）抄：绿色数字卡 / 步骤圆圈 / 小节标题 / 圆点状态标 / 紧凑列表。
 * 三条硬约束 = 零 Emoji / 不靠颜色单独表意（状态标带形状）/ 正文对比度 ≥ 4.5:1。
 * 颜色即语义：绿=成了/主按钮 · 琥珀=要注意 · 红=没成。
 */
:root {
  --bg: #F2F3F5; --surface: #FFFFFF; --surface-2: #F6F7F9;
  --line: #E3E6EA; --line-strong: #C9CFD6;
  --text: #111418; --text-2: #4C5563; --text-3: #6E7887;
  --money: #047857; --money-soft: #E8F7F0; --money-line: #A9E0C9; --money-ink: #C4EEDD; --money-rule: #3A9E7C;
  --warn: #B45309; --warn-soft: #FDF3E4; --warn-line: #EBCFA4;
  --stop: #B91C1C; --stop-soft: #FDECEC; --stop-line: #EBB9B9;
  --radius: 14px; --radius-btn: 12px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(17,20,24,.04), 0 6px 20px rgba(17,20,24,.05);
  --step--2: 12px; --step--1: 13px; --step-0: 15px; --step-1: 17px; --step-4: 28px;
  --gap: 12px; --pad: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171B; --surface: #1D2126; --surface-2: #262B31; --line: #333941; --line-strong: #47505A;
    --text: #F1F3F5; --text-2: #C3CAD3; --text-3: #949DA8;
    --money: #34D399; --money-soft: #12291F; --money-line: #2F6B53; --money-ink: #A7E6CD; --money-rule: #2F6B53;
    --warn: #E5A24A; --warn-soft: #2A2013; --warn-line: #6A4E23;
    --stop: #FF8A80; --stop-soft: #2E1717; --stop-line: #6E3232;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.28);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: var(--step-0)/1.6 -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
:focus-visible { outline: 3px solid var(--money); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--money); }

/* ── 布局 ── */
.wrap { max-width: 560px; margin: 0 auto; padding: 0 var(--pad) 32px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: 560px; margin: 0 auto; padding: 6px var(--pad); display: flex; align-items: center; gap: 10px; min-height: 52px; }
.topbar h1 { font-size: var(--step-1); font-weight: 650; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.brandmark { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -8px;
  background: none; border: 0; color: var(--text-2); cursor: pointer; border-radius: 10px;
}
.iconbtn svg { width: 21px; height: 21px; }
.linkbtn {
  background: none; border: 0; padding: 6px 2px; font: inherit; font-size: var(--step--1); font-weight: 600;
  color: var(--text-3); cursor: pointer; min-height: 36px;
}

/* ── 品牌头（登录/注册页）/ 页脚 ── */
.brandhead { display: flex; flex-direction: column; align-items: center; gap: 9px; margin: 30px 0 4px; text-align: center; }
.brandhead img.bmark { width: 48px; height: 48px; border-radius: 12px; }
.brandhead img.bword { height: 16px; width: auto; }
.brandhead p { margin: 0; color: var(--text-3); font-size: var(--step--1); }
.dark-only { display: none; }
@media (prefers-color-scheme: dark) { .light-only { display: none; } .dark-only { display: block; } }
.brandfoot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 0 6px; color: var(--text-3); font-size: 12px; }
.brandfoot img { height: 13px; width: auto; opacity: .5; }

/* ── 卡片 ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); box-shadow: var(--shadow); margin: var(--gap) 0; }
.card-title { font-size: 16px; font-weight: 650; margin: 0 0 4px; }
.lead { color: var(--text-2); font-size: 14px; margin: 0 0 14px; }
.muted { color: var(--text-3); font-size: var(--step--1); }

/* 谁在提报：一行小字，不占首屏 */
.who { display: flex; align-items: center; gap: 6px; margin: 12px 2px 8px; color: var(--text-3); font-size: var(--step--1); white-space: nowrap; overflow: hidden; }
.who b { color: var(--text-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.who i { font-style: normal; font-variant-numeric: tabular-nums; }

/* ── 数字卡（抄接单端钱条）── */
.money {
  background: var(--money); color: #fff; border-radius: var(--radius);
  padding: 14px var(--pad); display: flex; align-items: center; gap: 14px; margin: 0;
}
.money div { flex: 1; min-width: 0; }
.money s { display: block; text-decoration: none; font-size: var(--step--1); color: var(--money-ink); }
.money b { display: block; font-size: var(--step-4); font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.money hr { width: 1px; height: 36px; border: 0; background: var(--money-rule); margin: 0; flex: none; }
@media (prefers-color-scheme: dark) { .money { color: #08130E; } .money s { color: #14503A; } }

/* ── 步骤圈（抄接单端 .steps.invflow）── */
.steps { display: flex; align-items: flex-start; margin: 2px 0 14px; padding: 0; list-style: none; }
.steps > div { flex: 1; text-align: center; position: relative; }
.steps > div::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--money-line); }
.steps > div:first-child::before { display: none; }
.steps i {
  position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 5px;
  border-radius: 50%; background: var(--money-soft); border: 2px solid var(--money); color: var(--money);
  font-style: normal; font-size: var(--step--1); font-weight: 700;
}
.steps span { display: block; font-size: var(--step--2); color: var(--text-2); font-weight: 600; line-height: 1.4; }
/* 做完的那一步：实心绿圈 + 勾 */
.steps > div.done i { background: var(--money); color: #fff; }
.steps > div.done i svg { width: 16px; height: 16px; stroke-width: 3; }
@media (prefers-color-scheme: dark) { .steps > div.done i { color: #08130E; } }

/* 发布要求卡：琥珀=要注意；一条一行，图标 + 要求 + 细节 */
.req { border-color: var(--warn-line); }
.reqhead { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; }
.reqhead b { font-size: 16px; font-weight: 700; }
.reqhead small { font-size: var(--step--2); color: var(--warn); font-weight: 650; }
.reqs { list-style: none; margin: 0; padding: 0; }
.reqs li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; }
.reqs li + li { border-top: 1px solid var(--line); }
.reqs .ri { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.reqs .ri svg { width: 17px; height: 17px; stroke-width: 2; }
.reqs .rm { flex: 1; min-width: 0; padding-top: 3px; }
.reqs .rm b { display: block; font-size: 14px; font-weight: 650; line-height: 1.45; }
.reqs .rd { font-size: var(--step--1); color: var(--text-2); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.reqs .topic { padding: 1px 8px; border-radius: 6px; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--text); font-weight: 650; }

/* 话题一行 */
.topicline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 9px 12px;
  background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: var(--radius-sm);
  color: var(--warn); font-size: var(--step--1); }
.topicline .topic { padding: 1px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--warn-line);
  color: var(--text); font-weight: 650; }

/* ── 小节标题（抄接单端 .sec）── */
.sec { display: flex; align-items: center; gap: 7px; font-size: var(--step--1); font-weight: 650; color: var(--text-3);
  letter-spacing: .04em; margin: 20px 2px 6px; }
.sec svg { width: 14px; height: 14px; flex: none; }
.sec .n { font-weight: 500; letter-spacing: 0; }
.sec .linkbtn { margin-left: auto; color: var(--money); letter-spacing: 0; min-height: 28px; padding: 0 2px; }

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  font-size: 16px; font-weight: 600; font-family: inherit; border-radius: var(--radius-btn);
  border: 1px solid transparent; cursor: pointer; background: var(--money); color: #fff; text-decoration: none;
  transition: transform .06s ease, filter .15s ease;
}
@media (prefers-color-scheme: dark) { .btn { color: #08130E; } }
.btn:active { transform: scale(.985); }
.btn[disabled] { background: var(--surface-2); color: var(--text-3); border-color: var(--line-strong); cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); min-height: 44px; font-size: var(--step-0); }
.btn.sm { min-height: 44px; font-size: 14px; padding: 0 12px; }

/* ── 表单 ── */
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.hint { color: var(--text-3); font-size: 12.5px; line-height: 1.55; margin: -2px 0 8px; font-weight: 400; }
/* 输入框 16px：iOS 低于 16px 聚焦会整页放大 */
input[type=text], input[type=tel], input[type=password], textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 11px;
}
input:focus, textarea:focus { outline: none; border-color: var(--money); box-shadow: 0 0 0 3px var(--money-soft); }
textarea { min-height: 76px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: var(--text-3); font-size: 15px; }
.field { margin: 0 0 14px; }
.err { color: var(--stop); font-size: var(--step--1); margin: -4px 0 10px; }
.err:empty { display: none; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; min-width: 0; }
.row .btn { flex: none; }

.seg { display: flex; gap: 8px; }
.segopt { flex: 1; margin: 0; font-weight: 500; }
.segopt input { position: absolute; opacity: 0; pointer-events: none; }
.segopt span {
  display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 10px; font-size: 14px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); cursor: pointer;
}
.segopt input:checked + span { border-color: var(--money); background: var(--money-soft); color: var(--money); font-weight: 650; }
.segopt input:focus-visible + span { outline: 3px solid var(--money); outline-offset: 2px; }

/* ── 提示条 ── */
.note { display: flex; gap: 8px; align-items: flex-start; border-radius: var(--radius-sm); padding: 10px 12px; margin: var(--gap) 0 0;
  font-size: var(--step--1); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); white-space: pre-wrap; }
.note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--text-3); }

/* ── 状态标：色块 + 文字 + 形状（抄接单端 .tag）── */
.tag { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: var(--step--2); font-weight: 600;
  padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; line-height: 1.6; }
.tag .dot { width: 7px; height: 7px; flex: none; }
.tag.ok { color: var(--money); background: var(--money-soft); border-color: var(--money-line); }
.tag.ok .dot { border-radius: 50%; background: currentColor; }   /* 圆 = 成了 */
.tag.stop { color: var(--stop); background: var(--stop-soft); border-color: var(--stop-line); }
.tag.stop .dot { background: currentColor; }                     /* 方 = 没成 */

/* ── 列表 ── */
.list { padding: 2px 14px; margin-top: 0; }
.li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; }
.li + .li { border-top: 1px solid var(--line); }
.li .lm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.li b { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.li b em { font-style: normal; font-weight: 500; color: var(--text-3); margin-right: 4px; }
.li small { font-size: var(--step--2); color: var(--text-3); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.li .why { font-size: var(--step--2); color: var(--stop); }
.li .tag { margin-top: 1px; }
.li.empty { color: var(--text-3); font-size: var(--step--1); padding: 14px 0; }
.nw { white-space: nowrap; }
.subform { border-bottom: 1px dashed var(--line-strong); padding: 14px 0; }

/* 多个项目时的项目列表 */
a.li { text-decoration: none; color: inherit; align-items: center; }
a.li svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }

.empty { text-align: center; padding: 32px 16px; color: var(--text-3); font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  max-width: min(92vw, 420px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.28);
}
.toast:empty { display: none; }
.skel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }

/* ── 底栏（抄接单端 .tabbar）── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 8px var(--pad) calc(8px + env(safe-area-inset-bottom));
}
.tabbar-in { max-width: 560px; margin: 0 auto; display: flex; gap: 6px; }
.tabbar a {
  flex: 1; min-height: 48px; text-decoration: none; border-radius: var(--radius-btn);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--text-3); font-size: 11px; font-weight: 600;
}
.tabbar a[aria-current='page'] { background: var(--text); color: var(--bg); }
.tabbar svg { width: 19px; height: 19px; }
body.hastab .wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.hastab .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }

/* ── 我的 · 团长卡 ── */
.mhead { display: flex; align-items: center; gap: 12px; }
.mav { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); border: 1px solid var(--line); }
.mhead .mm { flex: 1; min-width: 0; }
.mhead b { display: block; font-size: 16px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mhead small { display: block; color: var(--text-3); font-size: var(--step--1); }
.kvrow { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 14px; }
.kvrow span { color: var(--text-3); flex: none; }
.kvrow b { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.kvrow .linkbtn { color: var(--money); min-height: 32px; padding: 0 4px; }
.qrbox { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.qrbox img { width: 96px; height: 96px; border-radius: 8px; border: 1px solid var(--line); background: #fff; object-fit: contain; flex: none; }
.qrbox small { color: var(--text-3); font-size: var(--step--1); line-height: 1.5; }
.qrbox { cursor: zoom-in; }
/* 二维码大图：全屏暗底，图片占满宽度方便长按识别 */
.imgview { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.82); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: 24px 16px; }
.imgview img { max-width: 100%; max-height: 80vh; border-radius: 10px; background: #fff; object-fit: contain; }
.imgview p { margin: 0; color: rgba(255,255,255,.8); font-size: var(--step--1); }
.mav.initial { display: grid; place-items: center; background: var(--money-soft); color: var(--money); border-color: var(--money-line); font-weight: 700; font-size: 17px; }
.role { flex: none; font-size: var(--step--2); font-weight: 650; padding: 2px 9px; border-radius: 999px;
  color: var(--money); background: var(--money-soft); border: 1px solid var(--money-line); }
/* 会员条（官方「差 X 星值升级」同口径） */
.vip { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.viphead { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.viphead b { font-size: 14px; font-weight: 700; color: var(--warn); }
.viphead small { font-size: var(--step--2); color: var(--text-3); }
.vipbar { height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.vipbar i { display: block; height: 100%; border-radius: 3px; background: var(--warn); }
