/* ==========================================================================
   MatchFlow · 跨境面单匹配台
   ========================================================================== */
:root {
  --bg: #f2f6f4;
  --card: #ffffff;
  --ink: #0c1f26;
  --ink-2: #344a52;
  --muted: #63757d;
  --muted-2: #93a4aa;
  --line: #e2ebe7;
  --line-2: #eef4f1;
  --green: #0f9f7a;
  --green-2: #0a7f60;
  --green-soft: #e6f7f1;
  --navy: #0b1f2a;
  --blue: #2f6bff;
  --blue-soft: #edf2ff;
  --amber: #f59e0b;
  --amber-soft: #fff5e4;
  --red: #e5484d;
  --red-soft: #feecec;
  --teal: #0ba5a0;
  --teal-soft: #e6f8f7;
  --purple: #7a5af8;
  --purple-soft: #f0edff;
  --shadow: 0 1px 2px rgba(12, 31, 38, 0.04), 0 14px 34px -22px rgba(12, 31, 38, 0.22);
  --shadow-lg: 0 28px 70px -24px rgba(7, 24, 31, 0.35);
  --sidebar-w: 232px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at 92% -10%, #e3f4ee 0%, rgba(227, 244, 238, 0) 55%),
    radial-gradient(760px 460px at -8% 18%, #eef7f4 0%, rgba(238, 247, 244, 0) 50%),
    var(--bg);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: #bdeee0; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfdad5; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #b5c4be; }
::-webkit-scrollbar-track { background: transparent; }

/* 启动 */
.boot-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.boot-logo {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #16b68d, #0a7f60);
  box-shadow: 0 18px 40px -14px rgba(15, 159, 122, 0.7);
  animation: pulse 1.6s ease-in-out infinite;
}
.boot-screen strong { color: var(--ink); font-size: 20px; letter-spacing: 2px; }
.boot-screen span { font-size: 12px; color: var(--muted-2); }
.noscript { padding: 40px; text-align: center; color: var(--muted); }

/* 骨架 */
.app-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 50;
  display: flex; flex-direction: column; padding: 0 12px; overflow: hidden;
  color: #b3c3c8;
  background:
    radial-gradient(400px 260px at 8% -4%, rgba(15, 159, 122, 0.32), transparent 70%),
    radial-gradient(360px 280px at 100% 100%, rgba(11, 165, 160, 0.12), transparent 70%),
    linear-gradient(180deg, #0c2730 0%, #081a21 100%);
}
.sidebar::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 11px; height: 76px; padding: 0 8px; flex-shrink: 0; position: relative; z-index: 1; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #18bb91, #0a7f60);
  box-shadow: 0 10px 22px -9px rgba(15, 159, 122, 0.9);
  flex-shrink: 0;
}
.brand-mark.sm { width: 30px; height: 30px; border-radius: 9px; }
.brand > div:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { color: #fff; font-size: 16px; letter-spacing: 1px; }
.brand span { color: #63808a; font-size: 9.5px; letter-spacing: 0.6px; margin-top: 3px; }
.nav { flex: 1; overflow-y: auto; padding: 4px 0 12px; position: relative; z-index: 1; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-label { margin: 16px 10px 6px; color: #55737c; font-size: 9.5px; font-weight: 700; letter-spacing: 1.8px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 11px; margin-bottom: 3px;
  border-radius: 10px; color: #a9bcc2; font-size: 13px; font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.055); color: #eefcf8; }
.nav-icon { display: grid; place-items: center; width: 20px; opacity: 0.92; }
.nav-badge {
  margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px;
  display: inline-grid; place-items: center;
  background: #18b68c; color: #05231c; border-radius: 20px;
  font-size: 10px; font-style: normal; font-weight: 700;
}
.nav-badge:empty, .bn-badge:empty { display: none; }
.nav-item.active {
  color: #effffb;
  background: linear-gradient(90deg, rgba(19, 183, 143, 0.28), rgba(19, 183, 143, 0.08));
  box-shadow: inset 0 0 0 1px rgba(83, 226, 193, 0.16);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0 3px 3px 0; background: #28d5aa;
  box-shadow: 0 0 14px rgba(40, 213, 170, 0.9);
}
.nav-item.active .nav-icon { color: #4ee0be; }
.sidebar-foot { margin-top: auto; padding: 10px 0 16px; border-top: 1px solid rgba(255,255,255,0.07); position: relative; z-index: 1; }
.pda-status {
  display: flex; align-items: center; gap: 9px;
  margin: 0 4px 10px; padding: 9px 10px;
  background: rgba(15, 159, 122, 0.10); border: 1px solid rgba(46, 203, 167, 0.16);
  border-radius: 10px;
}
.pda-status div { display: flex; flex-direction: column; gap: 1px; }
.pda-status strong { color: #c9f7ea; font-size: 10.5px; font-weight: 600; }
.pda-status span { color: #639188; font-size: 9px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #31d9b3; box-shadow: 0 0 0 4px rgba(49, 217, 179, 0.12); animation: pulseDot 2s infinite; }
.side-version { color: #405e67; font-size: 9px; text-align: center; margin-top: 8px; letter-spacing: 0.3px; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  min-height: 72px; display: flex; align-items: center; gap: 14px;
  padding: 0 26px;
  background: rgba(242, 246, 244, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220, 231, 226, 0.9);
}
.mobile-brand { display: none; align-items: center; gap: 8px; }
.mobile-brand strong { font-size: 14px; letter-spacing: 0.5px; }
.topbar-title { min-width: 0; }
.crumb { color: var(--muted-2); font-size: 10.5px; margin-bottom: 1px; }
.crumb span { margin: 0 4px; color: #c4cfcb; }
.crumb em { font-style: normal; color: var(--muted); }
.topbar-title h1 { font-size: 19px; font-weight: 700; letter-spacing: -0.4px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 10px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid #e0eae5; border-radius: 9px;
  color: var(--muted); font-size: 10.5px; white-space: nowrap;
}
.topbar .avatar { width: 33px; height: 33px; border-radius: 10px; font-size: 12px; }

.bottom-nav { display: none; }

.view { width: 100%; max-width: 1500px; margin: 0 auto; padding: 22px 26px 42px; }
.page { animation: rise 0.28s ease both; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.page-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.4px; }
.page-head p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ready-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 31px; padding: 0 10px; border-radius: 99px;
  background: var(--green-soft); color: #087f61; font-size: 10.5px; font-weight: 600;
}
.ready-chip i { width: 6px; height: 6px; border-radius: 50%; background: #12b886; box-shadow: 0 0 0 3px rgba(18,184,134,0.15); }

/* 通用组件 */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 18px 19px; min-width: 0;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.card-head h3 { font-size: 14px; font-weight: 650; letter-spacing: -0.1px; }
.card-head p { color: var(--muted-2); font-size: 10.5px; margin-top: 2px; }
.text-link { display: inline-flex; align-items: center; gap: 2px; color: var(--green); font-size: 11px; font-weight: 600; white-space: nowrap; }
.text-link:hover { color: var(--green-2); }
.muted { color: var(--muted-2); }
.text-warn { color: #b45309 !important; }
.ic { flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border 0.14s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #16b68c, #0b8969);
  box-shadow: 0 8px 18px -9px rgba(15, 159, 122, 0.85);
}
.btn-primary:hover { background: linear-gradient(180deg, #1ac397, #0a7f60); }
.btn-ghost { background: #fff; border-color: #dfe9e4; color: var(--ink-2); }
.btn-ghost:hover { background: #fbfefc; border-color: #c8d9d2; }
.btn-white { background: #fff; color: #0a3a32; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.55); }
.btn-white:hover { background: #f3fffb; }
.btn-hero-ghost { color: #c9f7ea; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.13); }
.btn-danger { color: #fff; background: linear-gradient(180deg, #f25a5f, #d93b40); }
.btn-danger-soft { color: #c92a30; background: var(--red-soft); border-color: #f7d2d3; }
.btn-danger-soft:hover { background: #fde1e2; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 11.5px; border-radius: 8px; }
.btn-xs { height: 28px; padding: 0 9px; font-size: 10.5px; border-radius: 7px; gap: 4px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.icon-btn {
  width: 35px; height: 35px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted);
  transition: all 0.15s ease; flex-shrink: 0;
}
.icon-btn:hover { color: var(--ink); border-color: #cbd9d3; background: #fbfefc; }
.icon-btn.xs { width: 28px; height: 28px; border-radius: 7px; }
.mini-btn {
  height: 28px; padding: 0 9px; border: 1px solid #dfe9e4; border-radius: 7px;
  background: #fff; color: var(--ink-2); font-size: 10.5px; font-weight: 600; white-space: nowrap;
}
.mini-btn:hover { border-color: #b9d1c6; }
.mini-btn.warn { background: var(--red-soft); border-color: #f7d2d3; color: #c92a30; }
.mini-link { border: 0; background: transparent; padding: 0; color: var(--green); font-size: 10.5px; font-weight: 600; }
.mr-auto { margin-right: auto; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 23px; padding: 0 8px; border-radius: 99px;
  font-size: 10.5px; font-weight: 600; white-space: nowrap;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.b-pending { background: var(--amber-soft); color: #b45309; }
.b-pending i { background: var(--amber); }
.b-confirmed { background: var(--blue-soft); color: #2459d8; }
.b-confirmed i { background: var(--blue); }
.b-matched { background: var(--green-soft); color: #087f61; }
.b-matched i { background: var(--green); }
.b-exception { background: var(--red-soft); color: #c92a30; }
.b-exception i { background: var(--red); }
.b-available { background: var(--green-soft); color: #087f61; }
.b-available i { background: var(--green); }
.b-bound { background: var(--blue-soft); color: #2459d8; }
.b-bound i { background: var(--blue); }
.b-incomplete { background: var(--amber-soft); color: #b45309; }
.b-incomplete i { background: var(--amber); }

.avatar {
  width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.av-blue { background: #e8efff; color: #2459d8; }
.av-green { background: #e6f7f1; color: #087f61; }
.av-purple { background: #f0edff; color: #5b3ee0; }
.av-orange { background: #fff2e3; color: #b45309; }
.av-teal { background: #e6f8f7; color: #0a7f7a; }
.av-red { background: #feecec; color: #c92a30; }

/* 客户表 */
.customer-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.cs-card { display: flex; align-items: center; gap: 9px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.cs-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.cs-card > div { display: flex; flex-direction: column; gap: 0; }
.cs-card strong { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.cs-card span { color: var(--muted-2); font-size: 9px; }
.customer-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; flex-wrap: wrap; }
.customer-toolbar h3 { font-size: 14px; font-weight: 650; }
.customer-toolbar p { color: var(--muted-2); font-size: 10px; margin-top: 2px; }
.table-scroll { width: 100%; overflow-x: auto; margin: 0 -19px; padding: 0 19px; }
.customer-table { width: 100%; min-width: 950px; border-collapse: collapse; font-size: 11px; }
.customer-table th { height: 36px; padding: 0 10px; text-align: left; color: var(--muted-2); font-size: 9px; font-weight: 600; background: #f7fbf9; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.customer-table th:first-child { border-radius: 8px 0 0 8px; }
.customer-table th:last-child { border-radius: 0 8px 8px 0; }
.customer-table td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.customer-table tr:last-child td { border-bottom: 0; }
.customer-table tbody tr:hover { background: #f9fdfb; }
.customer-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.customer-cell .avatar { width: 31px; height: 31px; border-radius: 8px; font-size: 11px; }
.customer-cell > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.customer-cell strong { font-size: 11px; font-weight: 650; white-space: nowrap; }
.customer-cell span { color: var(--muted-2); font-size: 8.5px; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alias-list { display: flex; flex-wrap: wrap; gap: 3px; max-width: 210px; }
.alias-chip { display: inline-flex; align-items: center; height: 21px; padding: 0 6px; border-radius: 5px; background: var(--green-soft); color: #0a7f61; font-size: 9px; font-weight: 550; }
.contact-cell { display: flex; flex-direction: column; gap: 1px; }
.contact-cell strong { font-size: 10px; font-weight: 600; }
.contact-cell span { color: var(--muted-2); font-size: 9px; }
.group-cell { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9.5px; max-width: 180px; }
.group-cell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num-cell { display: flex; flex-direction: column; gap: 0; }
.num-cell strong { font-size: 13px; font-weight: 700; }
.num-cell span { color: var(--muted-2); font-size: 8.5px; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions .mini-btn, .row-actions .icon-btn { vertical-align: middle; margin-left: 3px; }
.table-hint { display: flex; align-items: center; gap: 4px; margin-top: 9px; color: var(--muted-2); font-size: 9px; }

/* 临时流水码 */
.shortcode-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 10px 0 9px; padding: 10px 13px; border-radius: 10px;
  background: linear-gradient(100deg, #0e2b28, #0b4439); color: #fff;
  box-shadow: 0 10px 24px -18px rgba(5,30,25,0.8);
}
.shortcode-banner > div { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.shortcode-banner span { color: #8fc3b7; font-size: 8.5px; letter-spacing: 0.3px; }
.shortcode-banner strong { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: 0.5px; color: #6ff0cd; font-variant-numeric: tabular-nums; }
.shortcode-banner em { color: #9dbbb3; font-style: normal; font-size: 8.5px; }
.shortcode-banner .btn { color: #d9f8ee; border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); }
.shortcode-banner .btn:hover { background: rgba(255,255,255,0.12); }
.shortcode-banner.compact { padding: 7px 10px; margin: 7px 0; }
.shortcode-banner.compact strong { font-size: 22px; }
.shortcode-banner.compact .btn { height: 26px; }
.qc-code { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 5px; background: #e5f7f0; color: #087f61; font-size: 10px; font-weight: 750; letter-spacing: 0.3px; font-variant-numeric: tabular-nums; }
.today-code { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; margin-right: 4px; border-radius: 4px; background: #e5f7f0; color: #087f61; font-size: 9px; font-weight: 750; }
.ps-code { color: var(--green); font-weight: 750; }

/* 门户发布 / 客户提交 */
.publish-loading { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 12px; }
.publish-loading strong { font-size: 12px; margin-top: 9px; }
.publish-loading span { color: var(--muted-2); font-size: 9.5px; margin-top: 2px; }
.portal-link-box { padding: 12px 13px; border-radius: 10px; background: #f6faf8; border: 1px solid var(--line-2); }
.portal-link-box > span { display: block; color: var(--muted-2); font-size: 8.5px; margin-bottom: 5px; }
.portal-link-row { display: flex; align-items: center; gap: 6px; }
.portal-link-row input { flex: 1; min-width: 0; height: 34px; padding: 0 9px; border: 1px solid #dfe9e4; border-radius: 7px; background: #fff; color: var(--muted); font-size: 9.5px; outline: 0; }
.portal-publish-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--green-soft); color: #3f7061; }
.portal-publish-note div { display: flex; flex-direction: column; gap: 1px; }
.portal-publish-note strong { font-size: 9.5px; }
.portal-publish-note span { font-size: 8.5px; line-height: 1.55; }
.portal-publish-guide { display: flex; flex-direction: column; gap: 6px; margin-top: 11px; }
.portal-publish-guide > div { display: flex; gap: 7px; }
.portal-publish-guide span { width: 19px; height: 19px; border-radius: 6px; background: #f0f6f3; color: #69887d; font-size: 8.5px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.portal-publish-guide p { color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.submission-list { display: flex; flex-direction: column; gap: 7px; }
.submission-card { padding: 10px 11px; border: 1px solid var(--line-2); border-radius: 9px; background: #fbfdfc; }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-head strong { font-size: 10.5px; }
.sc-head span { color: var(--muted-2); font-size: 8.5px; }
.sc-tracking { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11px; font-weight: 650; }
.sc-tracking em { font-style: normal; font-size: 8px; padding: 1px 5px; border-radius: 4px; background: var(--purple-soft); color: #5b3ee0; font-weight: 500; }
.sc-product { display: flex; align-items: flex-start; gap: 4px; margin-top: 4px; color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.sc-label { display: flex; align-items: center; gap: 6px; margin-top: 5px; padding-top: 5px; border-top: 1px dashed var(--line-2); font-size: 9px; }
.sc-label span { color: var(--muted-2); }
.sc-label strong { font-size: 9.5px; font-weight: 650; }
.sc-label a { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--green); font-size: 9px; font-weight: 600; }
.qc-product { display: flex; align-items: flex-start; gap: 5px; margin-top: 7px; padding: 6px 8px; border-radius: 6px; background: #f7fbf9; color: #4e6b61; font-size: 9.5px; line-height: 1.5; }
.qc-product .ic { margin-top: 1px; color: #7ba597; }
.ps-product { display: inline-flex; align-items: center; gap: 3px; color: #4e6b61 !important; }
.product-flag { display: inline-flex; align-items: center; gap: 3px; color: #4e6b61; }

.empty { text-align: center; padding: 38px 18px; }
.empty-icon { width: 50px; height: 50px; margin: 0 auto 11px; border-radius: 14px; background: #f0f7f4; color: #83a89b; display: grid; place-items: center; }
.empty h4 { font-size: 13px; font-weight: 650; }
.empty p { color: var(--muted-2); font-size: 11px; margin: 4px 0 12px; }

.chip-btn {
  height: 27px; padding: 0 9px; border-radius: 7px;
  border: 1px solid #e0ebe5; background: #fff; color: #4c6860;
  font-size: 10px; font-weight: 500; white-space: nowrap;
}
.chip-btn:hover { border-color: #b9d8cc; background: #f9fdfb; color: var(--green-2); }
.chip-btn.ghost { border-style: dashed; color: var(--muted-2); }
.demo-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.demo-chips > span { color: var(--muted-2); font-size: 10px; }

/* 概览 */
.hero {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; gap: 28px;
  padding: 27px 30px; min-height: 205px; border-radius: 19px;
  color: #fff;
  background:
    radial-gradient(560px 300px at 88% -10%, rgba(24, 200, 156, 0.34), transparent 70%),
    radial-gradient(400px 260px at 12% 120%, rgba(11, 165, 160, 0.20), transparent 70%),
    linear-gradient(118deg, #0a2029 0%, #0d3334 55%, #0b4a42 100%);
  box-shadow: 0 24px 50px -28px rgba(7, 24, 31, 0.7);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.hero-copy { position: relative; z-index: 1; max-width: 610px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: #8fc3b7; font-size: 11px; }
.hero h2 { font-size: 29px; line-height: 1.28; font-weight: 700; letter-spacing: -0.8px; margin: 9px 0 7px; }
.hero h2 em { font-style: normal; color: #58e0be; }
.hero p { color: #a5c4bd; font-size: 12.5px; line-height: 1.75; }
.hero-actions { display: flex; gap: 8px; margin-top: 17px; }
.hero-flow {
  position: relative; z-index: 1; width: 285px; flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 0;
  padding: 16px 18px; border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.035); border-radius: 14px; backdrop-filter: blur(4px);
}
.hero-flow-row { display: flex; align-items: center; gap: 10px; }
.flow-no {
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.18); color: #9dbfb6; font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.flow-no.done { background: #1bb88e; border-color: #1bb88e; color: #04352a; box-shadow: 0 0 0 4px rgba(27,184,142,0.12); }
.hero-flow-row div { display: flex; flex-direction: column; gap: 1px; }
.hero-flow-row strong { color: #eafff9; font-size: 11.5px; font-weight: 600; }
.hero-flow-row span { color: #7fa69b; font-size: 9.5px; }
.hero-line { width: 1px; height: 13px; background: rgba(255,255,255,0.13); margin-left: 13px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 15px 12px; box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.kpi:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -22px rgba(12,31,38,0.35); }
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 9px; }
.kpi-icon { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; }
.ci-green { background: var(--green-soft); color: var(--green); }
.ci-amber { background: var(--amber-soft); color: var(--amber); }
.ci-blue { background: var(--blue-soft); color: var(--blue); }
.ci-teal { background: var(--teal-soft); color: var(--teal); }
.ci-purple { background: var(--purple-soft); color: var(--purple); }
.kpi-tag { color: #b2c0ba; font-size: 9.5px; }
.kpi-label { display: block; color: var(--muted); font-size: 10.5px; }
.kpi-value { font-size: 25px; line-height: 1.35; font-weight: 700; letter-spacing: -0.6px; margin-top: 1px; }
.kpi-value em { font-style: normal; font-size: 10px; color: var(--muted-2); font-weight: 500; margin-left: 2px; }
.kpi-foot { color: var(--muted-2); font-size: 9.5px; margin-top: 3px; }
.kpi-foot b { color: #b45309; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 13px; margin-bottom: 13px; }
.task-list { display: flex; flex-direction: column; gap: 2px; }
.task-row { display: flex; align-items: center; gap: 9px; padding: 9px 5px; border-radius: 9px; }
.task-row:hover { background: #f8fcfa; }
.task-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.task-icon.red { background: var(--red-soft); color: var(--red); }
.task-icon.blue { background: var(--blue-soft); color: var(--blue); }
.task-icon.amber { background: var(--amber-soft); color: var(--amber); }
.task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.task-main > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.task-main strong { font-size: 11.5px; font-weight: 650; }
.task-main > span { color: var(--muted-2); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-list { display: flex; flex-direction: column; gap: 1px; }
.activity { display: flex; gap: 9px; padding: 7px 2px; }
.activity-dot { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: #f2f7f5; color: #7c9b91; }
.activity.match .activity-dot { background: var(--green-soft); color: var(--green); }
.activity.confirm .activity-dot { background: var(--blue-soft); color: var(--blue); }
.activity.exception .activity-dot { background: var(--red-soft); color: var(--red); }
.activity.notify .activity-dot { background: var(--amber-soft); color: var(--amber); }
.activity-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.activity-body strong { font-size: 10.5px; font-weight: 550; line-height: 1.5; }
.activity-body span { color: var(--muted-2); font-size: 9px; }
.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: center; gap: 9px; padding: 8px 3px; border-bottom: 1px solid var(--line-2); }
.mini-row:last-child { border-bottom: 0; }
.mini-time { width: 40px; color: var(--muted-2); font-size: 9.5px; font-variant-numeric: tabular-nums; }
.mini-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mini-main strong { font-size: 11px; font-weight: 650; }
.mini-main span { color: var(--muted-2); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.labels-overview { display: flex; flex-direction: column; }
.lo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 2px 0 12px; }
.lo-stats div { background: #f7fbf9; border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 8px; display: flex; flex-direction: column; gap: 1px; text-align: center; }
.lo-stats strong { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; }
.lo-stats span { color: var(--muted-2); font-size: 8.5px; }
.lo-bar { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9.5px; line-height: 1.6; padding: 8px 0 10px; border-top: 1px dashed var(--line); }
.lo-bar .ic { color: var(--green); }
.lo-cta { width: 100%; }

/* 收件 */
.scan-console {
  background:
    radial-gradient(500px 220px at 100% 0%, #effbf6 0%, transparent 60%),
    #fff;
  border-color: #d8e8e1;
}
.scan-head { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.scan-symbol { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex-shrink: 0; }
.scan-head h3 { font-size: 15px; font-weight: 650; }
.scan-head p { color: var(--muted-2); font-size: 10.5px; margin-top: 2px; }
.scan-ready { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: #0a8266; font-size: 10px; font-weight: 600; background: var(--green-soft); border-radius: 99px; padding: 5px 9px; }
.scan-ready i { width: 6px; height: 6px; border-radius: 50%; background: #12b886; }
.scan-input-wrap {
  display: flex; align-items: center; gap: 7px;
  background: #fff; border: 1.5px solid #cfe3db; border-radius: 12px;
  padding: 5px 6px 5px 13px;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}
.scan-input-wrap:focus-within { border-color: #2ec79f; box-shadow: 0 0 0 4px rgba(46, 199, 159, 0.12); }
.scan-input {
  flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent;
  font-size: 19px; font-weight: 550; letter-spacing: 0.6px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.scan-input::placeholder { font-size: 13px; font-weight: 400; letter-spacing: 0; color: #a9bab3; }
.scan-input-wrap.compact .scan-input { height: 44px; font-size: 16px; }
.camera-btn {
  width: 44px; height: 44px; border-radius: 9px; border: 1px solid #dfeae5;
  background: #f7fbf9; color: #54776b; display: grid; place-items: center; flex-shrink: 0;
}
.camera-btn:hover { background: #eef8f4; color: var(--green-2); }
.camera-btn[disabled] { opacity: 0.4; }
.scan-hint { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; color: var(--muted-2); font-size: 9.5px; }
.scan-hint span { display: inline-flex; align-items: center; gap: 4px; }
.scan-hint .ic { color: #b98d31; }

.scan-result { margin-top: 13px; display: flex; align-items: flex-start; gap: 13px; padding: 16px 18px; animation: rise 0.22s ease both; }
.scan-result.idle { border-style: dashed; background: rgba(255,255,255,0.65); box-shadow: none; }
.result-idle { display: flex; align-items: center; gap: 12px; color: var(--muted-2); }
.result-idle > .ic { width: 42px; height: 42px; padding: 9px; border-radius: 11px; background: #eef7f3; color: #88a99c; }
.result-idle div { display: flex; flex-direction: column; gap: 2px; }
.result-idle strong { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.result-idle span { font-size: 10.5px; color: var(--muted-2); }
.result-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.scan-result.success .result-icon { background: var(--green-soft); color: var(--green); }
.scan-result.duplicate .result-icon { background: var(--amber-soft); color: var(--amber); }
.result-main { flex: 1; min-width: 0; }
.result-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.result-kicker { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--green-2); }
.scan-result.duplicate .result-kicker { color: #b45309; }
.result-main h3 { font-size: 19px; font-weight: 700; letter-spacing: 0.2px; margin: 3px 0 2px; font-variant-numeric: tabular-nums; }
.result-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--muted); font-size: 10.5px; }
.result-meta span + span::before { content: "·"; margin-right: 9px; color: #c6d2cc; }
.result-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
.photo-flag { display: inline-flex; align-items: center; gap: 3px; color: #0a8266; }

.receive-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 13px; margin-top: 13px; }
.today-list { display: flex; flex-direction: column; }
.today-row { display: flex; align-items: center; gap: 9px; padding: 8px 2px; border-bottom: 1px solid var(--line-2); }
.today-row:last-child { border-bottom: 0; }
.today-time { width: 38px; color: var(--muted-2); font-size: 9.5px; font-variant-numeric: tabular-nums; }
.today-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.today-main strong { font-size: 11px; font-weight: 650; }
.today-main span { color: var(--muted-2); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pda-card { background: linear-gradient(180deg, #fbfefc, #fff); }
.tip-list { display: flex; flex-direction: column; gap: 2px; }
.tip-row { display: flex; gap: 9px; padding: 8px 2px; }
.tip-icon { width: 29px; height: 29px; border-radius: 8px; background: #eef7f3; color: #5b8274; display: grid; place-items: center; flex-shrink: 0; }
.tip-row div { display: flex; flex-direction: column; gap: 1px; }
.tip-row strong { font-size: 10.5px; font-weight: 600; }
.tip-row span { color: var(--muted-2); font-size: 9.5px; line-height: 1.55; }
.pda-note { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--muted-2); font-size: 9px; }

/* 待匹配 */
.queue-toolbar, .labels-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 11px; flex-wrap: wrap;
}
.tabs { display: flex; align-items: center; gap: 2px; overflow-x: auto; max-width: 100%; padding: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  height: 31px; padding: 0 10px; border: 0; background: transparent; border-radius: 7px;
  color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.tab:hover { background: #edf6f2; color: var(--ink-2); }
.tab.active { background: var(--green-soft); color: var(--green-2); font-weight: 650; }
.tab em { font-style: normal; font-size: 9px; font-weight: 600; color: var(--muted-2); background: rgba(12,31,38,0.05); border-radius: 4px; padding: 0 4px; min-width: 15px; text-align: center; }
.tab.active em { background: #fff; color: var(--green-2); }
.search-box {
  display: flex; align-items: center; gap: 6px;
  width: 235px; height: 35px; padding: 0 9px;
  background: #fff; border: 1px solid #dfe9e4; border-radius: 9px; color: var(--muted-2);
}
.search-box:focus-within { border-color: #97cdb9; box-shadow: 0 0 0 3px rgba(46,199,159,0.09); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 11px; }
.search-box input::placeholder { color: #a9bab3; }
.search-box input::-webkit-search-cancel-button { display: none; }
.clear-btn { width: 19px; height: 19px; border: 0; border-radius: 50%; background: #f0f5f3; color: var(--muted-2); display: grid; place-items: center; }
.queue-list { display: flex; flex-direction: column; gap: 9px; }
.queue-card {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid #dbe6e1;
  border-radius: 13px; padding: 13px 16px; box-shadow: 0 1px 2px rgba(12,31,38,0.025);
  transition: border 0.15s ease, box-shadow 0.15s ease;
}
.queue-card:hover { border-color: #cdded7; box-shadow: 0 10px 26px -22px rgba(12,31,38,0.3); }
.queue-card.q-pending { border-left-color: var(--amber); }
.queue-card.q-confirmed { border-left-color: var(--blue); }
.queue-card.q-matched { border-left-color: var(--green); }
.queue-card.q-exception { border-left-color: var(--red); }
.qc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qc-track { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.qc-track > strong { font-size: 13px; font-weight: 700; letter-spacing: 0.1px; }
.qc-weight { color: var(--muted-2); font-size: 9.5px; background: #f3f8f5; border-radius: 5px; padding: 1px 5px; }
.qc-time { color: var(--muted-2); font-size: 9.5px; white-space: nowrap; }
.qc-customer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 7px 0 9px; }
.customer-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-2); font-weight: 500; }
.customer-chip .avatar { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; }
.qc-order { color: var(--muted-2); font-size: 9px; }
.qc-flow {
  display: flex; align-items: center; gap: 7px;
  background: #f8fbfa; border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px;
}
.qc-node { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.qc-node span { color: var(--muted-2); font-size: 8.5px; }
.qc-node strong { font-size: 9.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-node.done strong { color: #0a8266; }
.qc-arrow { color: #c2d0ca; flex-shrink: 0; }
.qc-dest { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted-2); font-size: 10px; }
.dest-line { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.dest-line .flag, .expected-flag, .lc-flag, .flag { font-size: 15px; line-height: 1; }
.dest-line em { font-style: normal; color: var(--ink-2); font-weight: 500; }
.dest-line em::before { content: "·"; margin-right: 5px; color: #c6d2cc; }
.qc-exception { display: flex; align-items: flex-start; gap: 5px; margin-top: 8px; padding: 6px 8px; border-radius: 6px; background: var(--red-soft); color: #b23035; font-size: 9.5px; line-height: 1.55; }
.qc-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.done-text { display: inline-flex; align-items: center; gap: 3px; color: #0a8266; font-size: 10px; font-weight: 600; }

/* 复核 */
.verify-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(285px, 0.85fr); gap: 14px; }
.verify-main { min-width: 0; }
.verify-progress {
  display: flex; align-items: center; gap: 9px; padding: 12px 16px; margin-bottom: 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.vp-step { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.vp-step > span { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: #f0f5f3; color: #91a69e; font-size: 9.5px; font-weight: 700; flex-shrink: 0; }
.vp-step div { display: flex; flex-direction: column; gap: 0; }
.vp-step strong { font-size: 10px; font-weight: 600; color: var(--muted); }
.vp-step em { font-style: normal; color: #b1beba; font-size: 8.5px; }
.vp-step.active > span { background: var(--green); color: #fff; box-shadow: 0 0 0 4px rgba(15,159,122,0.10); }
.vp-step.active strong { color: var(--ink); }
.vp-step.done > span { background: var(--green-soft); color: var(--green); }
.vp-step.done strong { color: #0a8266; }
.verify-progress > i { width: 18px; height: 1px; background: #e2ebe7; flex-shrink: 0; }
.verify-card { margin-bottom: 11px; }
.verify-card.is-disabled { opacity: 0.62; }
.verify-step-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.step-no { width: 24px; height: 24px; border-radius: 7px; background: var(--green-soft); color: var(--green-2); display: grid; place-items: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.verify-step-head h3 { font-size: 13.5px; font-weight: 650; }
.verify-step-head p { color: var(--muted-2); font-size: 9.5px; margin-top: 1px; }
.parcel-summary {
  display: flex; align-items: center; gap: 10px; margin-top: 11px; padding: 10px 11px;
  background: #f7fbf9; border: 1px solid var(--line-2); border-radius: 10px;
}
.ps-icon { width: 35px; height: 35px; border-radius: 9px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.ps-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ps-main span { color: var(--muted-2); font-size: 8.5px; }
.ps-main strong { font-size: 12.5px; font-weight: 650; }
.ps-main em { font-style: normal; color: var(--muted-2); font-size: 9.5px; }
.inline-warning { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 9px 10px; border-radius: 9px; background: var(--amber-soft); color: #b45309; }
.inline-warning div { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.inline-warning strong { font-size: 10.5px; }
.inline-warning span { font-size: 9.5px; color: #92703a; }
.inline-warning.danger { background: var(--red-soft); color: #b23035; margin-top: 7px; }
.inline-warning.danger span { color: #a45357; }
.inline-success { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 9px 10px; border-radius: 9px; background: var(--green-soft); color: #087f61; }
.inline-success div { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.inline-success strong { font-size: 10.5px; }
.inline-success span { font-size: 9.5px; color: #4f8877; }
.expected-label {
  display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 11px;
  border: 1px dashed #cddfd8; border-radius: 10px; background: #fbfefc;
}
.expected-label > div { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.expected-label span { color: var(--muted-2); font-size: 8.5px; }
.expected-label strong { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1px; }
.expected-label em { font-style: normal; color: var(--muted); font-size: 9.5px; }
.verify-error { display: flex; align-items: flex-start; gap: 9px; margin-top: 10px; padding: 11px 12px; border-radius: 10px; background: var(--red-soft); border: 1px solid #f6d1d2; color: #b23035; }
.ve-main { flex: 1; }
.ve-main strong { font-size: 11.5px; }
.ve-main p { color: #9c4b4f; font-size: 10px; margin-top: 2px; line-height: 1.6; }
.ve-main p b { color: #b23035; }
.ve-actions { display: flex; gap: 5px; margin-top: 8px; }
.verify-success { text-align: center; padding: 20px 14px 12px; }
.vs-icon { width: 60px; height: 60px; margin: 0 auto 9px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(15,159,122,0.06); }
.verify-success h3 { font-size: 18px; font-weight: 700; color: #087f61; }
.verify-success > p { color: var(--muted); font-size: 10.5px; margin: 3px 0 11px; }
.vs-label { display: inline-flex; align-items: center; gap: 8px; text-align: left; padding: 9px 12px; border-radius: 10px; background: #f7fbf9; border: 1px solid var(--line-2); }
.vs-label div { display: flex; flex-direction: column; }
.vs-label strong { font-size: 12px; }
.vs-label span { color: var(--muted-2); font-size: 9.5px; }
.vs-actions { display: flex; justify-content: center; gap: 6px; margin-top: 13px; }
.verify-side { display: flex; flex-direction: column; gap: 12px; }
.rule-list { display: flex; flex-direction: column; gap: 8px; }
.rule-list > div { display: flex; gap: 8px; }
.rule-list span { width: 20px; height: 20px; border-radius: 6px; background: #f0f6f3; color: #6c8b80; font-size: 9px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.rule-list p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.demo-label {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 8px;
  border: 1px solid var(--line-2); border-radius: 9px; background: #fbfefc; text-align: left; margin-bottom: 6px;
}
.demo-label:hover { border-color: #c9dfd6; background: #f6fcf9; }
.demo-label div { flex: 1; display: flex; flex-direction: column; gap: 0; }
.demo-label strong { font-size: 10.5px; font-weight: 650; }
.demo-label span { color: var(--muted-2); font-size: 9px; }
.demo-label .ic { color: #9fb3ab; }
.side-note { color: var(--muted-2); font-size: 9px; line-height: 1.6; margin-top: 3px; }

/* 面单库 */
.upload-card { padding: 13px; margin-bottom: 12px; }
.upload-zone {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1.5px dashed #c9ded5; border-radius: 12px;
  background: linear-gradient(180deg, #fbfefc, #f7fcf9);
  transition: all 0.15s ease; cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--green); background: #f1fbf6; box-shadow: inset 0 0 0 3px rgba(15,159,122,0.05); }
.upload-icon { width: 45px; height: 45px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.upload-zone > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.upload-zone strong { font-size: 12.5px; font-weight: 650; }
.upload-zone span { color: var(--muted-2); font-size: 9.5px; line-height: 1.55; }
.upload-note { display: flex; align-items: flex-start; gap: 5px; color: var(--muted-2); font-size: 9px; margin-top: 8px; line-height: 1.5; }
.upload-note .ic { color: #c28b2d; margin-top: 1px; }
.labels-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.label-card {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 13px 14px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, border 0.15s ease;
}
.label-card:hover { transform: translateY(-1px); border-color: #cddfd7; }
.lc-head { display: flex; align-items: flex-start; gap: 8px; }
.pdf-icon { width: 33px; height: 36px; border-radius: 8px; background: #fff1ef; color: #e5484d; display: grid; place-items: center; flex-shrink: 0; }
.lc-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lc-title strong { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-title span { color: var(--muted-2); font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-head .badge { margin-left: auto; flex-shrink: 0; }
.lc-dest { display: flex; align-items: center; gap: 8px; margin: 11px 0 9px; padding: 9px 10px; border-radius: 9px; background: #f8fbfa; border: 1px solid var(--line-2); }
.lc-dest > div { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.lc-dest strong { font-size: 10.5px; font-weight: 600; }
.lc-dest span { color: var(--muted-2); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-meta { display: flex; flex-direction: column; gap: 3px; }
.lc-meta span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-2); font-size: 9px; }
.lc-actions { display: flex; align-items: center; gap: 5px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-2); }
.lc-actions .icon-btn { margin-left: auto; }

/* 设置 */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.setting-rows { display: flex; flex-direction: column; }
.setting-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--line-2); }
.setting-row:last-child { border-bottom: 0; }
.setting-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.setting-row div { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.setting-row strong { font-size: 10.5px; font-weight: 600; }
.setting-row span { color: var(--muted-2); font-size: 9px; }
.storage-card { display: flex; align-items: flex-start; gap: 9px; padding: 11px; border-radius: 9px; background: #f7fbf9; border: 1px solid var(--line-2); margin-bottom: 6px; }
.storage-icon { width: 33px; height: 33px; border-radius: 8px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.storage-card div:last-child { display: flex; flex-direction: column; gap: 2px; }
.storage-card strong { font-size: 10.5px; font-weight: 600; }
.storage-card span { color: var(--muted-2); font-size: 9px; line-height: 1.55; }
.guide-list { display: flex; flex-direction: column; gap: 8px; }
.guide-list > div { display: flex; gap: 8px; }
.guide-list span { width: 22px; height: 22px; border-radius: 6px; background: #f0f6f3; color: #69887d; font-size: 9px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.guide-list p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.guide-list strong { color: var(--ink-2); font-weight: 600; }
.about-card { display: flex; align-items: center; gap: 11px; background: linear-gradient(180deg, #fbfefc, #fff); }
.about-mark { width: 39px; height: 39px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.about-card div:last-child { display: flex; flex-direction: column; gap: 2px; }
.about-card strong { font-size: 11px; font-weight: 650; }
.about-card p { color: var(--muted-2); font-size: 9.5px; }

/* 弹窗 / 表单 */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 20, 26, 0.48); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 22px;
  animation: fade 0.16s ease both;
}
.modal {
  width: 560px; max-width: 94vw; max-height: 90vh;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  animation: pop 0.2s ease both;
}
.modal-lg { width: 760px; }
.modal-sm { width: 420px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 21px 14px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.modal-head p { color: var(--muted-2); font-size: 10.5px; margin-top: 3px; }
.modal-body { padding: 17px 21px 19px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 21px; border-top: 1px solid var(--line-2); background: #fbfdfc; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 13px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { color: var(--muted); font-size: 10.5px; font-weight: 500; }
.field > span em { font-style: normal; color: var(--red); margin-left: 1px; }
.field input, .field select, .field textarea {
  width: 100%; height: 39px; padding: 0 10px;
  border: 1px solid #dfe9e4; border-radius: 9px; background: #fff; outline: 0;
  font-size: 12px; color: var(--ink); transition: border 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { height: auto; min-height: 110px; padding: 9px 10px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none; padding-right: 27px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393a4aa' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8fd0ba; box-shadow: 0 0 0 3px rgba(15,159,122,0.09); }
.field input::placeholder, .field textarea::placeholder { color: #a9bab3; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 4px; padding-top: 13px; border-top: 1px solid var(--line-2); }
.form-tip { display: flex; align-items: flex-start; gap: 6px; padding: 8px 10px; border-radius: 8px; background: var(--green-soft); color: #3f7061; font-size: 9.5px; line-height: 1.6; }
.form-tip .ic { margin-top: 1px; color: var(--green); }
.form-alert { display: flex; align-items: flex-start; gap: 6px; padding: 9px 10px; border-radius: 8px; background: var(--red-soft); color: #b23035; font-size: 10px; line-height: 1.6; }
.code-preview { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 9px; background: #f6faf8; border: 1px solid var(--line-2); }
.code-preview span { color: var(--muted-2); font-size: 8.5px; }
.code-preview strong { font-size: 15px; font-weight: 700; letter-spacing: 0.3px; }
.code-preview em { font-style: normal; color: var(--muted-2); font-size: 9px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.code-preview.compact { width: 100%; }
.locked-value { height: 39px; display: flex; align-items: center; padding: 0 10px; border: 1px dashed #dfe9e4; border-radius: 9px; background: #f8fbfa; font-size: 11px; color: var(--muted); }
.confirm-body { display: flex; align-items: flex-start; gap: 11px; padding: 2px 0 4px; }
.confirm-icon { width: 39px; height: 39px; border-radius: 11px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.confirm-icon.danger { background: var(--red-soft); color: var(--red); }
.confirm-body p { color: var(--ink-2); font-size: 12px; line-height: 1.7; }
.bound-note { color: var(--muted-2); font-size: 9px; }
.raw-text { grid-column: span 2; background: #f8fbfa; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; }
.raw-text summary { cursor: pointer; color: var(--muted); font-size: 9.5px; font-weight: 600; }
.raw-text pre { margin: 6px 0 0; white-space: pre-wrap; word-break: break-all; color: var(--muted-2); font-family: Consolas, monospace; font-size: 9px; line-height: 1.6; max-height: 130px; overflow: auto; }

/* 通知 / 回复 */
.chat-frame { border: 1px solid var(--line-2); border-radius: 12px; background: #f3f8f6; padding: 12px; }
.chat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.chat-avatar { width: 30px; height: 30px; border-radius: 8px; background: #dff4ec; color: #087f61; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.chat-head div { display: flex; flex-direction: column; gap: 0; }
.chat-head strong { font-size: 10.5px; font-weight: 650; }
.chat-head span { color: var(--muted-2); font-size: 8.5px; }
.chat-bubble { background: #fff; border-radius: 4px 11px 11px 11px; padding: 11px 13px; box-shadow: 0 2px 8px -5px rgba(12,31,38,0.2); }
.chat-bubble pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; color: var(--ink-2); font-size: 10.5px; line-height: 1.8; }
.chat-time { text-align: right; color: var(--muted-2); font-size: 8.5px; margin-top: 5px; }
.notify-photo { margin-top: 9px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); position: relative; max-width: 260px; }
.notify-photo img { width: 100%; max-height: 160px; object-fit: cover; display: block; }
.notify-photo span { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 5px; background: rgba(5,25,20,0.68); color: #eafff8; font-size: 8px; backdrop-filter: blur(4px); }
.reply-intro { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; background: var(--green-soft); color: #3f7061; font-size: 9.5px; margin-bottom: 10px; }
.reply-list { display: flex; flex-direction: column; gap: 7px; }
.reply-row { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--line-2); border-radius: 9px; background: #fbfdfc; flex-wrap: wrap; }
.reply-parcel { width: 190px; display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; }
.reply-parcel strong { font-size: 10.5px; font-weight: 650; }
.reply-parcel span { color: var(--muted-2); font-size: 8.5px; }
.reply-parcel em { font-style: normal; color: #b23035; font-size: 8px; }
.reply-row select { flex: 1; min-width: 220px; height: 34px; border: 1px solid #dfe9e4; border-radius: 7px; padding: 0 26px 0 8px; background: #fff; font-size: 10px; outline: 0; appearance: none; }
.reply-row select:focus { border-color: #8fd0ba; box-shadow: 0 0 0 3px rgba(15,159,122,0.08); }

/* 拍照 */
.photo-loading { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 10px 8px; }
.photo-loading img { max-width: 100%; max-height: 260px; border-radius: 10px; margin-top: 14px; object-fit: contain; }
.photo-loading strong { font-size: 12px; margin-top: 8px; }
.photo-loading span { color: var(--muted-2); font-size: 9.5px; margin-top: 2px; }
.spinner { width: 32px; height: 32px; border: 3px solid #e4f1ec; border-top-color: var(--green); border-radius: 50%; animation: spin 0.8s linear infinite; }
.photo-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr); gap: 14px; }
.photo-preview { position: relative; border-radius: 11px; overflow: hidden; background: #0e1c20; min-height: 260px; display: flex; align-items: center; justify-content: center; }
.photo-preview img { width: 100%; max-height: 390px; object-fit: contain; display: block; }
.photo-tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 5px; background: rgba(4,20,17,0.68); color: #e9fff8; font-size: 8px; backdrop-filter: blur(4px); }
.photo-fields { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.decode-banner { display: flex; align-items: flex-start; gap: 7px; padding: 8px 9px; border-radius: 8px; }
.decode-banner strong { display: block; font-size: 10px; }
.decode-banner span { font-size: 9px; line-height: 1.5; }
.decode-banner.success { background: var(--green-soft); color: #087f61; }
.decode-banner.success span { color: #4f8877; }
.decode-banner.warn { background: var(--amber-soft); color: #b45309; }
.decode-banner.warn span { color: #92703a; }
.share-preview { display: flex; align-items: flex-start; gap: 6px; padding: 8px 9px; border-radius: 8px; background: var(--blue-soft); color: #3b63bd; }
.share-preview div { display: flex; flex-direction: column; gap: 0; }
.share-preview strong { font-size: 9.5px; }
.share-preview span { color: #6c86b9; font-size: 8.5px; }
.photo-view { display: flex; align-items: center; justify-content: center; background: #0e1c20; border-radius: 11px; overflow: hidden; }
.photo-view img { max-width: 100%; max-height: 62vh; object-fit: contain; }
.photo-view-meta { display: flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 9px; margin-top: 7px; }

/* 相机 */
.camera-stage { position: relative; background: #061317; border-radius: 12px; overflow: hidden; min-height: 310px; display: flex; align-items: center; justify-content: center; }
.camera-stage video { width: 100%; max-height: 56vh; object-fit: cover; display: block; }
.camera-frame { position: absolute; left: 16%; right: 16%; top: 24%; bottom: 24%; border: 1.5px solid rgba(63, 232, 194, 0.8); border-radius: 10px; box-shadow: 0 0 0 999px rgba(4,14,17,0.32); }
.camera-frame::before, .camera-frame::after { content: ""; position: absolute; width: 22px; height: 22px; border-color: #42e6c1; border-style: solid; }
.camera-frame::before { left: -2px; top: -2px; border-width: 3px 0 0 3px; border-radius: 8px 0 0 0; }
.camera-frame::after { right: -2px; bottom: -2px; border-width: 0 3px 3px 0; border-radius: 0 0 8px 0; }
.camera-status { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: rgba(0,0,0,0.55); color: #d8fff5; padding: 5px 10px; border-radius: 99px; font-size: 9.5px; white-space: nowrap; backdrop-filter: blur(4px); }

/* 帮助 */
.help-steps { display: flex; flex-direction: column; gap: 8px; }
.help-steps > div { display: flex; gap: 8px; }
.help-steps span { width: 22px; height: 22px; border-radius: 7px; background: var(--green-soft); color: var(--green-2); font-size: 9px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.help-steps div div { display: flex; flex-direction: column; gap: 1px; }
.help-steps strong { font-size: 10.5px; color: var(--ink-2); }
.help-steps p { color: var(--muted); font-size: 9.5px; line-height: 1.65; }

/* 轻提示 */
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 7px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 7px;
  min-width: 220px; max-width: 380px; padding: 10px 14px;
  border-radius: 10px; background: #0c2027; color: #e8f7f2; font-size: 11px;
  box-shadow: 0 18px 36px -12px rgba(5,20,24,0.5);
  animation: toastIn 0.22s ease both;
}
.toast-ic { width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: rgba(18,184,134,0.18); color: #43e2b9; flex-shrink: 0; }
.toast-error .toast-ic { background: rgba(229,72,77,0.18); color: #ff9b9e; }
.toast-warning .toast-ic { background: rgba(245,158,11,0.2); color: #ffc45e; }
.toast-info .toast-ic { background: rgba(47,107,255,0.2); color: #9db9ff; }
.toast.leaving { animation: toastOut 0.3s ease both; }

/* 动画 */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(9px) scale(0.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(5px); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* 响应式 */
@media (max-width: 1180px) {
  .hero-flow { width: 250px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .receive-grid { grid-template-columns: 1fr; }
  .verify-grid { grid-template-columns: 1fr; }
  .verify-side { display: grid; grid-template-columns: 1fr 1fr; }
  .labels-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); }
  .app-main { margin-left: 0; }
  .topbar { padding: 0 18px; }
  .mobile-brand { display: flex; }
  .crumb { display: none; }
  .topbar-title h1 { font-size: 17px; }
  .top-chip { display: none; }
  .view { padding: 16px 16px 88px; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255,255,255,0.94); backdrop-filter: blur(18px);
    border-top: 1px solid #dfe9e4; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px -20px rgba(12,31,38,0.28);
  }
  .bn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 2px; border-radius: 9px; color: #8a9d97; font-size: 8.5px; font-weight: 500;
  }
  .bn-item.active { color: var(--green-2); background: #f0faf6; }
  .bn-icon { position: relative; display: grid; place-items: center; width: 28px; height: 24px; }
  .bn-badge {
    position: absolute; top: -3px; right: 0; min-width: 15px; height: 15px; padding: 0 4px;
    display: inline-grid; place-items: center; background: var(--amber); color: #3a2602;
    border-radius: 20px; font-size: 8px; font-style: normal; font-weight: 700;
    border: 1.5px solid #fff;
  }
  .hero { flex-direction: column; gap: 16px; padding: 22px; min-height: 0; }
  .hero-flow { width: 100%; flex-direction: row; align-items: center; gap: 4px; padding: 12px 14px; overflow-x: auto; }
  .hero-flow-row { flex: 1; min-width: 92px; }
  .hero-flow-row div { display: none; }
  .hero-flow-row .flow-no { margin: 0 auto; }
  .hero-line { width: 18px; height: 1px; flex: 0 0 18px; margin: 0; }
  .hero h2 { font-size: 26px; }
  .settings-grid { grid-template-columns: 1fr; }
  .about-card { margin-top: 0; }
  .page-head { align-items: flex-start; }
  .search-box { width: 210px; }
}
@media (max-width: 700px) {
  .topbar { min-height: 62px; padding: 0 13px; gap: 8px; }
  .topbar-title h1 { font-size: 16px; }
  .topbar .avatar { width: 30px; height: 30px; border-radius: 9px; }
  .view { padding: 12px 12px 88px; }
  .page-head { flex-direction: column; gap: 9px; margin-bottom: 12px; }
  .page-head h2 { font-size: 19px; }
  .page-head p { font-size: 10.5px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .customer-stats { grid-template-columns: 1fr 1fr; gap: 7px; }
  .cs-card { padding: 10px 11px; }
  .cs-card strong { font-size: 17px; }
  .customer-toolbar { flex-direction: column; align-items: stretch; }
  .customer-toolbar .search-box { width: 100%; }
  .table-scroll { margin: 0 -14px; padding: 0 14px; }
  .kpi-grid { gap: 8px; margin: 10px 0; }
  .kpi { padding: 12px 12px 10px; }
  .kpi-value { font-size: 21px; }
  .kpi-label { font-size: 9.5px; }
  .kpi-foot { font-size: 8.5px; }
  .kpi-icon { width: 31px; height: 31px; }
  .hero { padding: 19px; border-radius: 16px; }
  .hero h2 { font-size: 22px; }
  .hero p { font-size: 11px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-flow { display: none; }
  .dash-grid { gap: 10px; margin-bottom: 10px; }
  .card { padding: 14px; border-radius: 13px; }
  .scan-console { padding: 14px; }
  .scan-head { align-items: flex-start; }
  .scan-head h3 { font-size: 14px; }
  .scan-input { height: 46px; font-size: 16px; }
  .scan-input::placeholder { font-size: 11.5px; }
  .camera-btn { width: 40px; height: 40px; }
  .scan-hint { flex-direction: column; align-items: flex-start; gap: 3px; }
  .scan-result { flex-direction: column; gap: 9px; padding: 14px; }
  .result-main h3 { font-size: 17px; }
  .result-actions .btn { flex: 1; }
  .receive-grid { gap: 10px; }
  .queue-toolbar, .labels-toolbar { flex-direction: column; align-items: stretch; }
  .queue-toolbar .tabs, .labels-toolbar .tabs { width: 100%; }
  .search-box { width: 100%; }
  .qc-flow { gap: 4px; }
  .qc-node strong { font-size: 9px; }
  .qc-actions { justify-content: flex-start; }
  .verify-progress { padding: 9px 10px; gap: 4px; }
  .vp-step em { display: none; }
  .vp-step strong { font-size: 9px; }
  .verify-progress > i { width: 8px; }
  .verify-side { grid-template-columns: 1fr; }
  .labels-grid { grid-template-columns: 1fr; }
  .upload-zone { flex-wrap: wrap; padding: 12px; }
  .upload-zone .btn { width: 100%; }
  .photo-layout { grid-template-columns: 1fr; }
  .photo-preview { min-height: 180px; }
  .photo-preview img { max-height: 240px; }
  .reply-row { align-items: stretch; }
  .reply-parcel { width: 100%; }
  .reply-row select { min-width: 0; width: 100%; flex: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .modal-overlay { padding: 8px; }
  .modal { max-width: 100%; max-height: 94vh; border-radius: 15px; }
  .modal-head { padding: 15px 16px 12px; }
  .modal-body { padding: 14px 16px 16px; }
  .modal-foot { padding: 11px 16px calc(11px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .modal-foot .btn { flex: 1; }
  .toast-root { left: 10px; right: 10px; bottom: 78px; }
  .toast { max-width: none; }
  .lo-stats strong { font-size: 16px; }
}
@media (max-width: 420px) {
  .topbar-title h1 { font-size: 15px; }
  .page-actions { flex-wrap: wrap; }
  .page-actions .btn { min-width: 46%; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .qc-time { display: none; }
  .scan-ready { display: none; }
  .result-meta { font-size: 9.5px; gap: 6px; }
  .result-meta span + span::before { margin-right: 6px; }
  .hero h2 { font-size: 20px; }
  .lo-stats { grid-template-columns: 1fr 1fr; }
  .demo-chips .chip-btn { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
.bn-badge:empty, .nav-badge:empty { display: none !important; }

/* M1 · 同步状态徽标 */
.sync-badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .2px;
  background: rgba(15, 156, 116, .1); color: #0a7a5a; white-space: nowrap;
}
.sync-badge.wait { background: rgba(201, 130, 26, .12); color: #a2670f; }
.sync-badge.warn { background: rgba(197, 69, 59, .12); color: #b23a30; }
@media (max-width: 720px) { .sync-badge { display: none; } }

/* M2 · 建单页 */
.lvl-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 20px; padding: 0 6px; border-radius: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .3px;
}
.lvl-badge.l1 { background: #e7f8f0; color: #0a7a5a; }
.lvl-badge.l2 { background: #e8f0fd; color: #2f6fd0; }
.lvl-badge.l3 { background: #fdf1df; color: #a2670f; }
.lvl-badge.l4 { background: #fdeceb; color: #b23a30; }
.lvl-badge.lq { background: #eef2f1; color: #6b7f7a; }

.build-kpis { margin: 14px 0 16px; }
.build-preview { margin-bottom: 16px; border: 1px solid #cfe9df; }
.build-preview-head {
  display: flex; align-items: flex-start; gap: 16px; justify-content: space-between;
  padding: 16px 18px; background: #f2fbf7; border-bottom: 1px solid #d9efe6;
}
.build-preview-head strong { font-size: 14.5px; }
.build-preview-head p { margin: 5px 0 0; font-size: 12px; color: #5f746f; }
.build-preview-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.build-error {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding: 13px 16px; background: #fdf1f0; border-color: #f3d6d3; color: #b23a30; font-size: 13px;
}

.build-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 46px 24px; text-align: center; color: #5f746f;
}
.build-empty strong { font-size: 15px; color: #0e1f1c; }
.build-empty p { margin: 0; font-size: 12.5px; line-height: 1.7; max-width: 460px; }
.build-empty-actions { display: flex; gap: 10px; margin-top: 6px; }

.src-ok { display: inline-block; padding: 2px 7px; border-radius: 6px; background: #eaf7f2; color: #0a7a5a; font-weight: 700; font-size: 12px; }
.src-miss { display: inline-block; padding: 2px 7px; border-radius: 6px; background: #fdf1f0; color: #b23a30; font-weight: 700; font-size: 12px; }

/* M2b · 面单 PDF 对账 */
.build-labels { margin-bottom: 16px; }
.build-labels-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line, #e3ebe8);
}
.build-labels-head strong { font-size: 14px; margin-right: 10px; }
.build-pdf-hint { margin: 0; padding: 14px 18px 16px; font-size: 12.5px; color: #5f746f; line-height: 1.7; }
.build-pdf-report { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 16px; }
.pdf-stat {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 7px; font-size: 11.5px; font-weight: 600;
  background: #f1f5f4; color: #5f746f;
}
.pdf-stat.ok { background: #e7f8f0; color: #0a7a5a; }
.pdf-stat.bad { background: #fdeceb; color: #b23a30; }
.pdf-stat.warn { background: #fff5e4; color: #9a6414; }
.pdf-ok { font-size: 12px; font-weight: 700; color: #0a7a5a; }
.pdf-miss { font-size: 12px; color: #b23a30; }

/* 客户登录手机号 */
.contact-list { margin-bottom: 14px; }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed #eef3f1;
}
.contact-row:last-child { border-bottom: 0; }
.contact-row strong { display: block; font-size: 13.5px; }
.contact-row span { display: block; font-size: 11.5px; color: #7b8f8a; margin-top: 2px; letter-spacing: .4px; }
.contact-row em { display: inline-block; font-style: normal; font-size: 10.5px; color: #2c5a4e; background: #eef6f3; border-radius: 5px; padding: 1px 6px; margin-top: 4px; }
.contact-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.contact-empty { font-size: 12.5px; color: #b23a30; background: #fdf1f0; border-radius: 9px; padding: 10px 12px; margin: 0 0 12px; }
.contact-form { border-top: 1px solid #eef3f1; padding-top: 14px; }
.contact-form-row { display: flex; gap: 10px; }
.contact-form-row .field { flex: 1; }

/* 客户资料（公司 → 员工） */
.team-card { margin-bottom: 14px; overflow: hidden; }
.team-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: #f7fbf9; border-bottom: 1px solid #eef3f1;
}
.team-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team-title strong { display: block; font-size: 14.5px; }
.team-title span { display: block; font-size: 11.5px; color: #8fa39e; margin-top: 2px; }
.team-head-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.team-count { font-size: 11.5px; color: #7b8f8a; }
.team-list { padding: 4px 18px 10px; }
.team-row {
  display: grid; grid-template-columns: 1.5fr 1.2fr .8fr auto;
  align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed #eef3f1;
}
.team-row:last-child { border-bottom: 0; }
.team-person strong { font-size: 13.5px; }
.team-person em {
  font-style: normal; font-size: 10.5px; color: #2c5a4e; background: #eef6f3;
  border-radius: 5px; padding: 1px 6px; margin-left: 8px;
}
.team-phone { font-size: 13px; letter-spacing: .5px; color: #3a4a46; }
.team-state { justify-self: start; }
.team-empty { font-size: 12.5px; color: #b23a30; padding: 12px 0; }
@media (max-width: 720px) {
  .team-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .team-phone { grid-column: 1; }
}

/* 待补录 */
.hold-card { margin-bottom: 16px; border-color: #f3dcb6; background: #fffdf7; }
.hold-head { padding: 14px 18px 6px; }
.hold-head strong { font-size: 14.5px; color: #8a5c12; }
.hold-head p { margin: 4px 0 0; font-size: 12px; color: #9a7b45; }
.hold-list { padding: 4px 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.hold-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #f0e6d2; border-radius: 12px; padding: 10px 12px;
}
.hold-thumb { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; background: #f4f1ea; flex: 0 0 auto; }
.hold-thumb.empty { display: grid; place-items: center; font-size: 10px; color: #b0a48c; }
.hold-info { flex: 1; min-width: 0; }
.hold-code { display: block; font-size: 18px; letter-spacing: -.3px; color: #0b2b26; }
.hold-info span { display: block; font-size: 11.5px; color: #9a7b45; margin-top: 2px; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }

/* 补录弹窗 */
.hold-layout { display: flex; gap: 12px; margin-bottom: 14px; }
.hold-photo { width: 96px; height: 96px; border-radius: 11px; object-fit: cover; background: #f4f1ea; }
.hold-photo.empty { display: grid; place-items: center; font-size: 11px; color: #b0a48c; }
.hold-meta { display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.hold-meta span { font-size: 11px; color: #8fa39e; }
.hold-meta strong { font-size: 13px; margin-bottom: 6px; }

/* 备案号 */
.app-legal {
  padding: 14px 24px 22px; text-align: center; font-size: 11px;
}
.app-legal a { color: #93a8a2; text-decoration: none; }
.app-legal a:hover { color: #0f9c74; text-decoration: underline; }

/* 拖拽导入区 */
.drop-zone {
  display: flex; align-items: center; gap: 12px;
  margin: 12px 18px; padding: 16px 18px;
  border: 1.5px dashed #b7d6ca; border-radius: 12px;
  background: #f8fcfa; color: #2c5a4e; cursor: default;
}
.drop-zone.drag { border-color: #0f9c74; background: #eefaf4; }
.drop-zone strong { display: block; font-size: 13px; }
.drop-zone span { display: block; font-size: 11.5px; color: #7b8f8a; margin-top: 3px; }
