/* ============================================================
   AI 进件助手 · 手机 H5 测试版
   设计系统与小程序端保持一致：蓝紫渐变 Hero + 白色圆角卡片 +
   圆形浅色图标底 + 胶囊主按钮 + 状态标签
   ============================================================ */

:root {
  --brand: #4E6EF2;
  --brand-2: #7C5CFF;
  --brand-soft: #EEF2FF;
  --grad: linear-gradient(135deg, #5B7CFA 0%, #7C5CFF 100%);
  --bg: #F4F6FB;
  --t1: #1A1D26;
  --t2: #6B7280;
  --t3: #9AA1AE;
  --line: #EEF1F7;
  --ok: #10B981;
  --ok-bg: #E7F8F0;
  --warn: #F59E0B;
  --warn-bg: #FFF7E6;
  --danger: #EF4444;
  --danger-bg: #FEF0F0;
  --r: 14px;
  --shadow: 0 4px 16px rgba(78, 110, 242, .08);
  --bar: 68px;
  /* 内容最大宽度。真机上浏览器视口本来就窄，这个是给平板/桌面看的；
     也可以用 ?w=390 临时指定，方便截图验收 */
  --app-w: 480px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: #E8ECF4;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; }
input, textarea, select { -webkit-appearance: none; appearance: none; }
img { display: block; }
a { color: var(--brand); text-decoration: none; }

/* ---------------- 手机外壳 ---------------- */
#app {
  max-width: var(--app-w);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 40px rgba(20, 24, 36, .12);
}

@media (min-width: 520px) {
  body { padding: 20px 0 40px; }
  #app { min-height: auto; border-radius: 26px; overflow: hidden; }
}

/* ---------------- 顶部栏 ---------------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 48px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
}
.appbar.dark { background: var(--grad); border-bottom: none; }
.appbar .bk {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--t1); font-weight: 300; cursor: pointer;
}
.appbar.dark .bk, .appbar.dark .cl { color: #fff; }
.appbar .ti { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.appbar.dark .ti { color: #fff; }
.appbar .cl {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; color: var(--t1); font-weight: 300; cursor: pointer;
}
.appbar .ph { width: 38px; }

/* ---------------- 视图 ---------------- */
.view { display: none; padding-bottom: calc(var(--bar) + 28px + env(safe-area-inset-bottom)); }
.view.on { display: block; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad);
  border-radius: 0 0 20px 20px;
  padding: 22px 20px 26px;
  display: flex; align-items: flex-start;
}
.hero .deco { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.hero .d1 { width: 150px; height: 150px; right: -55px; top: -65px; }
.hero .d2 { width: 90px; height: 90px; right: 70px; bottom: -55px; background: rgba(255, 255, 255, .07); }
.hero .txt { flex: 1; min-width: 0; position: relative; z-index: 2; padding-right: 6px; }
.hero h2 { margin: 0; font-size: 21px; font-weight: 600; color: #fff; line-height: 1.32; }
.hero .sub { margin-top: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .88); line-height: 1.65; }
.hero .mascot { width: 84px; height: 84px; flex: none; position: relative; z-index: 2; }
.hero .prog { margin-top: 14px; }
.hero .prog .row { display: flex; justify-content: space-between; font-size: 11.5px; color: #fff; margin-bottom: 6px; }
.hero .track { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.hero .fill { height: 100%; background: #fff; border-radius: 99px; transition: width .25s ease; }

/* ---------------- 步骤条 ---------------- */
.steps { display: flex; align-items: center; background: #fff; padding: 13px 8px; }
.steps .st { display: flex; flex-direction: column; align-items: center; width: 82px; flex: none; }
.steps .dot {
  width: 23px; height: 23px; border-radius: 50%; background: #EDF0F7; color: var(--t3);
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.steps .dot img { width: 12px; height: 12px; }
.steps .dot.done { background: var(--ok-bg); }
.steps .dot.cur { background: var(--grad); color: #fff; font-weight: 500; }
.steps .lb { margin-top: 5px; font-size: 11px; color: var(--t3); }
.steps .lb.on { color: var(--brand); }
.steps .ln { flex: 1; height: 2px; background: #EDF0F7; margin: 0 2px 18px; border-radius: 2px; }
.steps .ln.on { background: #B9CCF8; }

/* ---------------- 内容与卡片 ---------------- */
.pad { padding: 12px 14px; }
.card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 15px; margin-bottom: 12px; }
.card.flat { box-shadow: none; background: #EEF2FF; display: flex; align-items: center; }
.card-hd { display: flex; align-items: center; margin-bottom: 3px; }
.card-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 7px; flex: none; }
.card-title { font-size: 15.5px; font-weight: 600; flex: 1; min-width: 0; }
.card-desc { font-size: 12.5px; color: var(--t3); margin: 3px 0 12px; }

.icon-badge {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex: none; margin-right: 11px;
}
.icon-badge img { width: 20px; height: 20px; }
.icon-badge.sm { width: 32px; height: 32px; }
.icon-badge.sm img { width: 17px; height: 17px; }

.row { display: flex; align-items: center; }
.flex1 { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------------- 按钮 ---------------- */
.btn {
  height: 48px; border-radius: 99px; border: none; width: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15.5px; font-weight: 500; color: #fff; background: var(--grad);
  box-shadow: 0 5px 14px rgba(90, 108, 245, .32);
  cursor: pointer; transition: opacity .15s;
}
.btn:active { opacity: .88; }
.btn img { width: 17px; height: 17px; margin-right: 7px; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid #D9E1FA; box-shadow: none; }
.btn.off { background: #C9D2E3; box-shadow: none; }
.btn.outline { background: #fff; color: var(--t2); border: 1px solid var(--line); box-shadow: none; }
.btn.sm { height: 34px; width: auto; padding: 0 16px; font-size: 13px; box-shadow: none; }
.btn.plain { background: #F4F6FB; color: var(--t2); box-shadow: none; }

/* ---------------- 提示条 ---------------- */
.tipbar {
  background: var(--warn-bg); border-radius: 9px; padding: 10px 11px;
  display: flex; align-items: flex-start; margin-top: 10px;
}
.tipbar img { width: 15px; height: 15px; flex: none; margin-right: 7px; margin-top: 1px; }
.tipbar .tt { font-size: 12px; color: #C2751A; line-height: 1.55; }
.tipbar.info { background: var(--brand-soft); }
.tipbar.info .tt { color: #4B5FCF; }

/* ---------------- 标签 ---------------- */
.tag { font-size: 11px; padding: 5px 10px; border-radius: 99px; flex: none; line-height: 1; white-space: nowrap; }
.tag.wait { background: #F1F3F8; color: var(--t3); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.doing { background: var(--brand-soft); color: var(--brand); }
.tag.err { background: var(--danger-bg); color: var(--danger); }
.tag.opt { background: #F1F3F8; color: var(--t3); }

/* ---------------- 槽位 ---------------- */
.slot-grid { display: flex; flex-wrap: wrap; gap: 14px 0; margin-top: 4px; }
.slot { width: 33.33%; display: flex; flex-direction: column; align-items: center; }
.slot .box {
  width: 88px; height: 88px; border-radius: 10px; background: #F7F9FD;
  border: 1.5px dashed #D5DEF5; display: flex; align-items: center; justify-content: center;
  position: relative; cursor: pointer;
}
.slot .box.filled { border: none; background: #EEF2FB; overflow: hidden; }
.slot .box .plus { font-size: 27px; color: #B7C4E8; font-weight: 300; margin-top: -4px; }
.slot .box img.pic { width: 100%; height: 100%; object-fit: cover; }
.slot .box .badge {
  position: absolute; left: 5px; bottom: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(16, 185, 129, .3);
}
.slot .box .badge img { width: 11px; height: 11px; }
.slot .box .del {
  position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(26, 29, 38, .62); color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center; padding-bottom: 2px;
  cursor: pointer; z-index: 2;
}
.slot .lb { margin-top: 6px; font-size: 12px; color: var(--t2); text-align: center; }
.slot .hint { font-size: 10px; color: #B4BAC6; line-height: 1.2; }

/* ---------------- 悬浮 / 底栏 ---------------- */
.fab-wrap {
  position: fixed; z-index: 35; left: 0; right: 0;
  bottom: calc(var(--bar) + 22px + env(safe-area-inset-bottom));
  max-width: var(--app-w); margin: 0 auto;
  padding: 0 14px;
  display: none; pointer-events: none;
}
.fab-wrap.on { display: block; }
.fab {
  position: absolute; right: 14px; bottom: 0;
  width: 54px; height: 54px; border-radius: 13px;
  background: var(--grad); box-shadow: 0 6px 16px rgba(90, 108, 245, .35);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; pointer-events: auto;
}
.fab img { width: 20px; height: 20px; }
.fab span { font-size: 9.5px; color: #fff; margin-top: 2px; line-height: 1; }

.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 34;
  max-width: var(--app-w); margin: 0 auto;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  box-shadow: 0 -3px 14px rgba(26, 29, 38, .07);
  display: none;
}
.bottom-bar.on { display: block; }
.bottom-bar .bt { text-align: center; font-size: 11.5px; color: var(--t3); margin-bottom: 8px; }
.bottom-bar .bt.ok { color: var(--ok); }

/* ---------------- 表单 ---------------- */
.ff { display: flex; align-items: center; min-height: 54px; padding: 8px 0; border-bottom: 1px solid #F1F3F8; }
.ff:last-child { border-bottom: none; }
.ff .lbl {
  width: 138px; flex: none; font-size: 13px; line-height: 1.35; color: #3A4356;
  display: flex; align-items: center;
}
.ff .req {
  font-size: 9.5px; color: var(--danger); background: var(--danger-bg);
  border-radius: 3px; padding: 1px 5px; margin-left: 5px; flex: none; line-height: 1.5;
}
.ff input[type=text], .ff input[type=tel], .ff input[type=number] {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  text-align: right; font-size: 14.5px; color: var(--t1); height: 40px;
}
.ff select {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  text-align: right; font-size: 14.5px; color: var(--t1); height: 40px;
  padding-right: 14px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%239AA1AE' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 12px;
}
.ff select:invalid, .ff select.empty { color: #B4BAC6; }
.ff .val-ph { flex: 1; text-align: right; font-size: 13.5px; color: #B4BAC6; }

/* 可点击的选择行（地区等） */
.pick-val {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; font-size: 14.5px; color: var(--t1); cursor: pointer;
}
.pick-val span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pick-val.ph span { color: #B4BAC6; font-size: 13.5px; }
.pick-val img { width: 12px; height: 12px; opacity: .7; flex: none; }

/* 省 / 市 / 区 三级选择 */
.reg-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px 10px; border-bottom: 1px solid var(--line);
}
.reg-crumb {
  flex: 1; min-width: 0; font-size: 12.5px; color: var(--t3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 10px;
}
.reg-cols { display: flex; height: 300px; }
.reg-col {
  flex: 1; min-width: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  border-right: 1px solid var(--line);
}
.reg-col:last-child { border-right: none; }
.reg-col .it {
  padding: 11px 7px; font-size: 13px; line-height: 1.35; color: var(--t2); cursor: pointer;
  border-radius: 7px;
}
.reg-col .it.on { color: var(--brand); font-weight: 500; background: var(--brand-soft); }
.ff.chips-row { flex-wrap: wrap; }
.chip-row { flex: 1; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px; color: var(--t2); background: #F4F6FB; border: 1px solid transparent;
  border-radius: 99px; padding: 7px 15px; white-space: nowrap; cursor: pointer;
}
.chip.on { color: var(--brand); background: var(--brand-soft); border-color: var(--brand); font-weight: 500; }
.ff.col { flex-direction: column; align-items: stretch; }
.ff.col .lbl { width: auto; margin-bottom: 8px; }
.ff textarea {
  width: 100%; min-height: 72px; background: #F7F9FD; border: none; outline: none;
  border-radius: 9px; padding: 10px 11px; font-size: 13.5px; resize: none; color: var(--t1);
}
::placeholder { color: #B4BAC6; }

/* ---------------- 底部弹层 ---------------- */
.mask {
  position: fixed; inset: 0; background: rgba(16, 20, 35, .5); z-index: 60;
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s;
}
.mask.on { opacity: 1; visibility: visible; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-width: var(--app-w); margin: 0 auto;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: 88vh; display: flex; flex-direction: column;
  transform: translateY(102%); transition: transform .26s cubic-bezier(.32, .72, 0, 1);
}
.sheet.on { transform: translateY(0); }
.sheet .hd { display: flex; align-items: flex-start; margin-bottom: 13px; }
.sheet .ttl { font-size: 17.5px; font-weight: 600; }
.sheet .sb { font-size: 11.5px; color: var(--t3); margin-top: 3px; }
.sheet .x {
  width: 29px; height: 29px; border-radius: 50%; background: #F1F3F8; color: var(--t2);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  padding-bottom: 2px; flex: none; cursor: pointer;
}
/* 注意 flex-basis 必须是 auto：用 flex:1（basis 0）在高度自适应的面板里会塌成 0 高 */
.sheet .body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* 底部操作区固定，不随内容滚动 */
.sheet .foot {
  flex: none;
  padding: 12px 0 2px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 2px; }
.tabs .tab {
  font-size: 13px; padding: 8px 16px; border-radius: 99px; background: #F4F6FB;
  color: var(--t2); white-space: nowrap; cursor: pointer; flex: none;
}
.tabs .tab.on { background: var(--brand); color: #fff; font-weight: 500; }

.subject-box { display: flex; align-items: center; background: #F7F9FD; border-radius: 11px; padding: 12px; margin-bottom: 10px; }
.subject-box .nm { font-size: 14.5px; font-weight: 600; }
.subject-box .sb { font-size: 11.5px; color: var(--t3); margin-top: 2px; }

.li { display: flex; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid #F1F3F8; }
.li:last-child { border-bottom: none; }
.li .dot { width: 7px; height: 7px; border-radius: 50%; margin: 7px 9px 0 0; flex: none; }
.li .nm { display: flex; align-items: center; font-size: 14px; font-weight: 500; }
.li .nm .tg { font-size: 10px; padding: 3px 7px; border-radius: 4px; margin-left: 7px; }
.li .tg.req { background: var(--ok-bg); color: var(--ok); }
.li .tg.opt { background: #F1F3F8; color: var(--t3); }
.li .ds { font-size: 11.5px; color: var(--t3); margin-top: 3px; }
.li .sl { font-size: 12px; color: #4B5670; margin-top: 5px; }
.li .sl .h { font-size: 11px; color: #B4BAC6; }

/* ---------------- 操作表 ---------------- */
.acts { padding: 4px 0 0; }
.acts .it {
  height: 54px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--t1); border-bottom: 1px solid var(--line); cursor: pointer;
}
.acts .it:last-child { border-bottom: none; }
.acts .it.cancel { color: var(--t2); margin-top: 8px; border-top: 8px solid #F4F6FB; }

/* ---------------- 隐私弹窗 ---------------- */
.pmodal {
  position: fixed; z-index: 70; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(calc(var(--app-w) - 28px), 94vw);
  background: #fff; border-radius: 18px; padding: 20px 17px 16px;
  max-height: 90vh; display: none; flex-direction: column;
}
.pmodal.on { display: flex; }
.pmodal .hd { display: flex; align-items: flex-start; margin-bottom: 11px; }
.pmodal .hd img { width: 31px; height: 31px; margin-right: 10px; flex: none; }
.pmodal .ti { font-size: 17.5px; font-weight: 600; line-height: 1.35; }
.pmodal .sb { font-size: 11.5px; color: var(--t3); margin-top: 4px; }
.pmodal .body { flex: 1; overflow-y: auto; background: #F7F9FD; border-radius: 11px; padding: 13px 12px; }
.pmodal .h { font-size: 13.5px; font-weight: 600; color: #2B3550; margin-bottom: 4px; }
.pmodal .p { font-size: 12.5px; color: #5C6577; line-height: 1.72; margin-bottom: 3px; }
.pmodal .blk { margin-bottom: 12px; }
.pmodal .lk { color: var(--brand); }
.pmodal .agree { display: flex; align-items: flex-start; margin: 13px 0 11px; cursor: pointer; }
.pmodal .cb {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #C9D2E3; flex: none;
  margin-right: 9px; margin-top: 1px; display: flex; align-items: center; justify-content: center;
}
.pmodal .cb.on { background: var(--brand); border-color: var(--brand); }
.pmodal .cb img { width: 12px; height: 12px; }
.pmodal .atxt { font-size: 12px; color: var(--t2); line-height: 1.65; }
.pmodal .btns { display: flex; gap: 10px; }
.pmodal .btns .btn { flex: 1; height: 45px; font-size: 14.5px; }
.pmodal .note { font-size: 10.5px; color: #B4BAC6; text-align: center; margin-top: 11px; line-height: 1.5; }

/* ---------------- 注册中 ---------------- */
.loading {
  min-height: calc(100vh - 48px); min-height: calc(100dvh - 48px);
  background: linear-gradient(160deg, #5B7CFA 0%, #7C5CFF 100%);
  padding: 46px 30px 30px; display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden;
}
.loading .deco { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.loading .da { width: 210px; height: 210px; top: -80px; right: -80px; }
.loading .db { width: 130px; height: 130px; bottom: -55px; left: -50px; background: rgba(255, 255, 255, .06); }
.loading .mascot { width: 146px; height: 146px; position: relative; z-index: 2; animation: floaty 2.4s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.loading h2 { margin: 22px 0 0; font-size: 21px; color: #fff; font-weight: 600; position: relative; z-index: 2; }
.loading .sub { margin-top: 9px; font-size: 12.5px; color: rgba(255, 255, 255, .86); text-align: center; line-height: 1.7; position: relative; z-index: 2; }
.loading .track { width: 100%; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .26); margin-top: 28px; overflow: hidden; position: relative; z-index: 2; }
.loading .fill { height: 100%; background: #fff; border-radius: 99px; transition: width .3s ease; }
.loading .pct { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .9); position: relative; z-index: 2; }
.loading .stp { margin-top: 30px; width: 100%; position: relative; z-index: 2; }
.loading .si { display: flex; align-items: center; margin-bottom: 13px; opacity: .55; }
.loading .si.on { opacity: 1; }
.loading .sd { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .75); margin-right: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.loading .sd img { width: 10px; height: 10px; }
.loading .sd.live { background: #fff; }
.loading .si span { font-size: 13px; color: #fff; }
.loading .err { margin-top: 26px; text-align: center; position: relative; z-index: 2; }
.loading .err p { font-size: 12.5px; color: #FFE1E1; margin: 0 0 14px; }

/* ---------------- 结果页 ---------------- */
.rs-hero {
  background: var(--grad); border-radius: 0 0 20px 20px; padding: 30px 20px 24px;
  display: flex; flex-direction: column; align-items: center;
}
.rs-check { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: flex; align-items: center; justify-content: center; }
.rs-check img { width: 31px; height: 31px; }
.rs-hero h2 { margin: 14px 0 0; font-size: 21px; color: #fff; font-weight: 600; }
.rs-hero .sub { margin-top: 7px; font-size: 12.5px; color: rgba(255, 255, 255, .86); text-align: center; }
.rs-no { margin-top: 17px; background: rgba(255, 255, 255, .18); border-radius: 99px; padding: 7px 18px; display: flex; align-items: center; }
.rs-no .l { font-size: 11.5px; color: rgba(255, 255, 255, .82); margin-right: 8px; }
.rs-no .v { font-size: 13.5px; color: #fff; font-weight: 500; letter-spacing: .5px; }

.tl-i { display: flex; }
.tl-i .lf { width: 27px; display: flex; flex-direction: column; align-items: center; flex: none; }
.tl-i .dt { width: 19px; height: 19px; border-radius: 50%; background: #EDF0F7; display: flex; align-items: center; justify-content: center; flex: none; }
.tl-i .dt img { width: 10px; height: 10px; }
.tl-i .dt.done { background: var(--ok-bg); }
.tl-i .dt.doing { background: var(--brand-soft); border: 2px solid var(--brand); }
.tl-i .ln { width: 1.5px; flex: 1; background: #EDF0F7; margin: 3px 0; min-height: 22px; }
.tl-i .mn { flex: 1; padding-bottom: 18px; }
.tl-i .tt { font-size: 14.5px; font-weight: 500; }
.tl-i .tt.wait { color: var(--t3); font-weight: 400; }
.tl-i .ds { font-size: 11.5px; color: var(--t3); margin-top: 3px; line-height: 1.6; }

.qr-row { display: flex; gap: 12px; margin-top: 4px; }
.qr-box {
  flex: 1; aspect-ratio: 1; border-radius: 11px; background: #F7F9FD;
  border: 1.5px dashed #D5DEF5; display: flex; flex-direction: column;
  align-items: center; justify-content: center; cursor: pointer;
}
.qr-box img { width: 42%; max-width: 76px; opacity: .5; }
.qr-box .cap { font-size: 11.5px; color: var(--t3); margin-top: 9px; }

/* ---------------- 我的进件 ---------------- */
.od { padding: 16px 15px; }
.od-hd { display: flex; align-items: flex-start; margin-bottom: 12px; }
.od-no { font-size: 15px; font-weight: 600; letter-spacing: .3px; }
.od-time { font-size: 11px; color: var(--t3); margin-top: 3px; }
.od-meta { background: #F7F9FD; border-radius: 9px; padding: 10px 12px; }
.od-meta .r { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.od-meta .r .l { font-size: 12px; color: var(--t3); flex: none; }
.od-meta .r .v { font-size: 12.5px; color: #3A4356; text-align: right; max-width: 62%; }
.od-steps { display: flex; margin-top: 13px; }
.od-steps .s { flex: 1; display: flex; flex-direction: column; align-items: center; }
.od-steps .b { width: 100%; height: 4px; border-radius: 2px; background: #EDF0F7; margin-bottom: 6px; }
.od-steps .s.on .b { background: var(--grad); }
.od-steps .s span { font-size: 10.5px; color: var(--t3); white-space: nowrap; }
.od-steps .s.on span { color: var(--brand); }
.od-v { margin-top: 14px; }
.od-v .vh { font-size: 12.5px; font-weight: 500; color: #3A4356; margin-bottom: 9px; }
.od-v .row { display: flex; gap: 12px; }
.od-v .box {
  flex: 1; border-radius: 11px; background: #fff; border: 1px solid var(--line);
  padding: 9px; text-align: center; cursor: pointer;
}
.od-v .box img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.od-v .box span { font-size: 11px; color: var(--t2); display: block; margin-top: 5px; }
.od-wait {
  margin-top: 14px; display: flex; align-items: center; background: #F7F9FD;
  border-radius: 9px; padding: 12px;
}
.od-wait img { width: 26px; height: 26px; flex: none; margin-right: 10px; opacity: .5; }
.od-wait span { font-size: 11.5px; color: var(--t3); line-height: 1.6; }
.od-reject { margin-top: 13px; background: var(--danger-bg); border-radius: 9px; padding: 11px 12px; }
.od-reject span { font-size: 12px; color: #C2504A; line-height: 1.6; }
.od-demo {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed #E3E8F4;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.od-demo .t { font-size: 11px; color: #B4BAC6; flex: 1; line-height: 1.5; }

/* 上传页的字段说明 */
.up-tip { font-size: 11.5px; color: #9AA1AE; line-height: 1.6; margin: -4rpx 0 8px; }

/* 「AI 识别」小标记 —— 标出哪些值是机器读出来的，提醒用户核对 */
.auto-tag {
  font-size: 9.5px; color: #4E6EF2; background: var(--brand-soft);
  border-radius: 4px; padding: 1px 6px; margin-left: 6px; flex: none; font-weight: 500;
}

/* 卡片标题栏里的操作按钮 */
.card-hd .btn.sm { height: 30px; padding: 0 14px; font-size: 12.5px; flex: none; }
.ocr-btn { background: var(--grad); color: #fff; border: none; }
.ocr-btn[disabled] { background: #C9D2E3; }

/* ---------------- 待归类照片 ---------------- */
.un-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.un-i {
  width: 88px; height: 88px; border-radius: 10px; overflow: hidden; position: relative;
  background: #EEF2FB; cursor: pointer; border: 1.5px dashed #F0C88A;
}
.un-i img { width: 100%; height: 100%; object-fit: cover; }
.un-i .un-badge {
  position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--warn); color: #fff; font-size: 15px; display: flex;
  align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(245, 158, 11, .4);
}
.un-i .un-guess {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgba(26, 29, 38, .6);
  color: #fff; font-size: 9.5px; text-align: center; padding: 2px 0; line-height: 1.3;
}
.ai-note {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 12px;
  background: var(--brand-soft); border-radius: 9px; padding: 10px 11px;
}
.ai-note img { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.ai-note span { font-size: 11.5px; color: #4B5FCF; line-height: 1.6; }

/* ---------------- 进件详情 ---------------- */
.od-actions { margin-top: 14px; }
.od-actions .btn.sm { width: 100%; height: 40px; font-size: 13.5px; }

.rj-card { border: 1px solid #FBD5D5; }
.rj-reason {
  background: var(--danger-bg); border-radius: 9px; padding: 12px 13px;
  font-size: 12.5px; color: #B33B3B; line-height: 1.7; margin-bottom: 12px;
}
.rj-list { display: flex; flex-direction: column; gap: 10px; }
.rj-item { display: flex; align-items: flex-start; gap: 10px; }
.rj-n {
  width: 20px; height: 20px; border-radius: 50%; flex: none; margin-top: 1px;
  background: #FEF0F0; color: #EF4444; font-size: 11.5px;
  display: flex; align-items: center; justify-content: center;
}
.rj-lb { font-size: 13px; color: #2B3550; font-weight: 500; }
.rj-rs { font-size: 12px; color: #B33B3B; margin-top: 3px; line-height: 1.6; }

.pv-i .im.bad { outline: 2px solid #EF4444; outline-offset: -2px; }
.ff .val.bad { color: #D64545; font-weight: 500; }
.ff .val { flex: 1; text-align: right; font-size: 14px; color: var(--t1); word-break: break-all; }

/* ---------------- 空状态 ---------------- */
.empty { padding: 70px 30px; text-align: center; }
.empty img { width: 76px; height: 76px; opacity: .35; margin: 0 auto; }
.empty .tx { font-size: 13px; color: var(--t3); margin-top: 14px; line-height: 1.75; }

/* ---------------- 杂项 ---------------- */
.mc-title { font-size: 16.5px; font-weight: 600; margin-bottom: 14px; }
.mc-hint { font-size: 11.5px; color: var(--t3); text-align: center; margin-top: 12px; line-height: 1.6; padding: 0 10px; }
.type-item { display: flex; align-items: center; padding: 11px 0; border-bottom: 1px solid #F5F7FB; }
.type-item:last-child { border-bottom: none; }
.type-item .nm { font-size: 14px; font-weight: 500; }
.type-item .ds { font-size: 11.5px; color: var(--t3); margin-top: 2px; line-height: 1.5; }
.entry { display: flex; align-items: center; background: #fff; border-radius: var(--r); padding: 15px; cursor: pointer; }
.entry img.ic { width: 19px; height: 19px; margin-right: 10px; }
.entry .tx { font-size: 13.5px; color: #3A4356; flex: 1; }
.entry img.ar { width: 13px; height: 13px; opacity: .6; }
.foot-note { padding: 10px 6px 26px; font-size: 10.5px; color: #B4BAC6; text-align: center; line-height: 1.75; }
.foot-note .fn-line { display: block; }
.resume { background: var(--brand-soft); border-radius: var(--r); padding: 13px 14px; margin-bottom: 12px; display: flex; align-items: center; cursor: pointer; }
.resume img { width: 20px; height: 20px; margin-right: 10px; flex: none; }
.resume .t { font-size: 13px; font-weight: 500; color: #2B3550; }
.resume .s { font-size: 11px; color: #6C7BA6; margin-top: 2px; }
.resume .go { font-size: 12.5px; color: #fff; background: var(--brand); border-radius: 99px; padding: 5px 14px; flex: none; }
.pv-group { margin-top: 12px; }
.pv-group .gn { font-size: 12px; color: var(--t2); margin-bottom: 7px; }
.pv-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pv-i { width: 78px; flex: none; }
.pv-i .im { width: 78px; height: 78px; border-radius: 9px; background: #EEF2FB; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pv-i .im img { width: 100%; height: 100%; object-fit: cover; }
.pv-i .lb { font-size: 10.5px; color: var(--t3); text-align: center; margin-top: 5px; }
.pv-edit { margin-top: 13px; padding-top: 12px; border-top: 1px solid #F1F3F8; font-size: 12.5px; color: var(--brand); cursor: pointer; }
.agree-row { display: flex; align-items: flex-start; padding: 4px 2px 12px; cursor: pointer; }
.agree-row .cb {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #C9D2E3; flex: none;
  margin-right: 9px; margin-top: 1px; display: flex; align-items: center; justify-content: center;
}
.agree-row .cb.on { background: var(--brand); border-color: var(--brand); }
.agree-row .cb img { width: 12px; height: 12px; }
.agree-row .tx { font-size: 12px; color: var(--t2); line-height: 1.7; }

/* ---------------- 图片放大 ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(12, 16, 28, .88);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; background: #fff; }
.lightbox .hint {
  position: absolute; bottom: 34px; left: 0; right: 0; text-align: center;
  font-size: 12.5px; color: rgba(255, 255, 255, .82);
}

/* ---------------- Toast ---------------- */
#toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 16px);
  background: rgba(26, 29, 38, .92); color: #fff; padding: 11px 22px;
  border-radius: 99px; font-size: 13px; opacity: 0; transition: .22s;
  z-index: 90; pointer-events: none; max-width: 84vw; text-align: center;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 桌面端提示 ---------------- */
.desktop-tip {
  display: none; max-width: 480px; margin: 0 auto 14px;
  background: #fff; border-radius: 12px; padding: 14px 16px;
  box-shadow: var(--shadow); font-size: 12.5px; color: var(--t2); line-height: 1.75;
}
.desktop-tip b { color: var(--t1); }
@media (min-width: 520px) { .desktop-tip { display: block; } }
