/* ==========================================================================
   app.css — 单聚移动端：舞台 / 手机壳 / 组件 / 各屏样式 / A5 单据
   字体与中性色来自 tokens.css；不在这里另设字体族或裸色值（纸张与印章除外）。
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  line-height: var(--lh-body);
  color: var(--c-text-1);
  background:
    radial-gradient(1100px 620px at 12% 0%, var(--c-stage-1) 0%, transparent 58%),
    radial-gradient(900px 540px at 100% 100%, var(--c-stage-2) 0%, transparent 56%),
    var(--c-stage-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
em, i { font-style: normal; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
b { font-weight: var(--fw-s); }
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-style: normal;
}
b.num, strong.num { font-weight: var(--fw-m); }
.hide { display: none !important; }
.grow { flex: 1 1 auto; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }

/* ---------- 舞台 / 手机壳 ---------- */
.stage {
  position: relative;   /* .stage__link 以舞台为锚，固定在右上角 */
  min-height: 100%; width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--sp-14);
  padding: var(--sp-24) var(--sp-16);
  overflow-x: hidden;
}
.stage__brand { display: flex; align-items: center; gap: var(--sp-10); }
/* 返回原型展厅：桌面舞台常驻左上；手机全屏落在底栏上方，任何页面都能直接回去 */
.stage__back {
  position: fixed; top: 16px; left: 16px; z-index: 600;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--c-line-2); border-radius: 980px;
  background: var(--c-glass); color: var(--c-text-1);
  font-size: 12px; font-weight: var(--fw-m); text-decoration: none;
  box-shadow: var(--sh-1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.stage__back:hover { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.stage__back:active { transform: scale(.97); }
@media (max-width: 480px) {
  .stage__back {
    top: auto; left: 12px; bottom: calc(66px + env(safe-area-inset-bottom));
    height: 30px; padding: 0 10px; font-size: 11px; opacity: .94;
  }
}
.stage__logo {
  width: 36px; height: 36px; border-radius: var(--r-10);
  background: var(--c-brand-grad);
  color: var(--c-on-brand);
  display: grid; place-items: center;
  box-shadow: var(--sh-brand);
}
.stage__title { display: block; font-size: var(--fs-16); font-weight: var(--fw-s); letter-spacing: -.01em; }
.stage__sub { display: block; font-size: var(--fs-12); color: var(--c-text-2); }
/* 舞台右上角：去 PC 后台（本页只放手机端，后台是另一个入口）。
   位置与外观以 docs/设计/01-视觉规范.md 4.9 为唯一基准，勿在别处再写布局覆盖。 */
.stage__link {
  position: absolute; top: var(--sp-16); right: var(--sp-16);
  display: inline-flex; align-items: center; gap: var(--sp-4);
  height: 32px; padding: 0 var(--sp-12);
  border-radius: var(--r-99); background: var(--c-card);
  color: var(--c-brand-ink); font-size: var(--fs-12); font-weight: var(--fw-m);
  box-shadow: var(--sh-1); border: 1px solid var(--c-line);
  transition: background var(--t-fast), transform var(--t-fast);
}
.stage__link:active { transform: scale(.97); background: var(--c-brand-soft); }
/* .stage__hint 是货台说明文案（结构说明），不是页头入口，留在品牌区下方居中 */
.stage__hint {
  max-width: 440px; text-align: center;
  font-size: var(--fs-12); line-height: 1.65; color: var(--c-text-2);
}
.stage__hint b { color: var(--c-text-1); font-weight: var(--fw-m); }
.stage__hint a { color: var(--c-brand-ink); font-weight: var(--fw-m); }
.stage__hint a:hover { text-decoration: underline; }

.device {
  position: relative;
  width: var(--w-device); height: var(--h-device);
  background: var(--c-bg);
  border-radius: var(--r-device);
  box-shadow:
    0 0 0 11px var(--c-device-frame),
    0 0 0 13px var(--c-device-edge),
    var(--sh-device);
  overflow: hidden;
  isolation: isolate;
  flex: 0 0 auto;
}
.device__notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 30px; border-radius: var(--r-99);
  background: var(--c-device-frame); z-index: 60; pointer-events: none;
}
.screen { position: absolute; inset: 0; overflow: hidden; background: var(--c-bg); }

/* ---------- 状态栏 ---------- */
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: var(--h-status);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-24) 0 var(--sp-32);
  font-size: var(--fs-14); font-weight: var(--fw-s);
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  color: var(--c-text-1); z-index: 55; pointer-events: none;
}
.statusbar__right { display: flex; align-items: center; gap: 5px; }
.homebar {
  position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: var(--r-99);
  background: var(--c-text-1); opacity: .28; z-index: 58; pointer-events: none;
}

/* ---------- 页面 / 导航 / tabbar ---------- */
.page {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--c-bg);
  z-index: 10;
  will-change: transform, opacity;
}
.page--enter { transform: translateX(100%); opacity: .98; }
.page--enter.page--anim { transform: none; opacity: 1; transition: transform var(--t-page) var(--ease-out), opacity var(--t-page) var(--ease-out); }
.page--leave.page--anim { transform: translateX(100%); opacity: .98; transition: transform var(--t-page) var(--ease-out), opacity var(--t-page) var(--ease-out); }
.page--behind { transform: translateX(-18%); }
.page--behind.page--anim { transition: transform var(--t-page) var(--ease-out); }
.page--fade { opacity: 0; transform: translateY(6px); }
.page--fade.page--anim { opacity: 1; transform: none; transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out); }

.navbar { position: relative; flex: 0 0 auto; padding-top: var(--h-status); background: var(--c-card); z-index: 20; }
.navbar__in { height: var(--h-nav); display: flex; align-items: center; padding: 0 var(--sp-12); gap: var(--sp-4); }
.navbar__title {
  flex: 1; min-width: 0;
  font-size: var(--fs-17); font-weight: var(--fw-s); letter-spacing: -.01em;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.navbar__title--left { text-align: left; padding-left: var(--sp-4); }
.navbar__sub { display: block; font-size: var(--fs-11); font-weight: var(--fw-r); color: var(--c-text-2); margin-top: 1px; }
.navbar__btn {
  flex: 0 0 auto; min-width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-99); color: var(--c-text-1); position: relative;
  transition: background var(--t-fast), transform var(--t-fast);
}
.navbar__btn:active { background: var(--c-fill); transform: scale(.94); }
.navbar__btn .dot { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-danger); }
.navbar__text { padding: 0 var(--sp-8); font-size: var(--fs-13); font-weight: var(--fw-m); color: var(--c-brand); }
.navbar__side { flex: 0 0 auto; display: flex; align-items: center; gap: var(--sp-2); min-width: 34px; justify-content: flex-end; }
.navbar__side--right { min-width: 34px; }

.page__body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.page__body::-webkit-scrollbar { width: 0; height: 0; }
.page__body--pad { padding-bottom: calc(var(--h-home) + var(--sp-20)); }
.page__body--bar { padding-bottom: calc(var(--h-home) + 104px); }
.page__body--tabbed { padding-bottom: calc(var(--h-tab) + var(--h-home) + 64px); }

.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--h-tab) + var(--h-home));
  padding-bottom: var(--h-home);
  display: flex; align-items: stretch;
  background: var(--c-glass);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--c-line);
  z-index: 30;
}
.tabbar__item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: var(--c-text-2); font-size: var(--fs-11);
  position: relative; transition: color var(--t-fast), transform var(--t-fast);
}
.tabbar__item:active { transform: scale(.94); }
.tabbar__item--on { color: var(--c-brand); font-weight: var(--fw-m); }
.tabbar__badge {
  position: absolute; top: 3px; left: 50%; margin-left: 8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--r-99); background: var(--c-danger); color: var(--c-on-brand);
  font-size: var(--fs-11); line-height: 16px; text-align: center; font-weight: var(--fw-m);
  font-family: var(--font-num); font-variant-numeric: tabular-nums; font-style: normal;
}

/* ---------- 通用组件 ---------- */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-18);
  box-shadow: var(--sh-1);
}
.sect { margin-bottom: var(--sp-16); }
.sect__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8); padding: 0 var(--sp-16) var(--sp-8); }
.sect__title { font-size: var(--fs-16); font-weight: var(--fw-s); letter-spacing: -.01em; }
.sect__more { display: flex; align-items: center; gap: 2px; font-size: var(--fs-12); color: var(--c-text-2); }
.sect__count { font-size: var(--fs-12); color: var(--c-text-2); }
.demo-note {
  padding: var(--sp-16) var(--sp-16) var(--sp-20);
  text-align: center;
  font-size: var(--fs-11);
  line-height: 1.6;
  color: var(--c-text-2);
  opacity: .82;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-6);
  min-height: 42px; padding: 0 var(--sp-20);
  border-radius: var(--r-99);
  font-size: var(--fs-14); font-weight: var(--fw-m);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:active { transform: scale(.975); }
.btn--primary { background: var(--c-brand); color: var(--c-on-brand); box-shadow: var(--sh-brand); }
.btn--primary:active { background: var(--c-brand-strong); }
.btn--white { background: var(--c-card); color: var(--c-brand-ink); }
.btn--white:active { background: var(--c-brand-soft); }
.btn--ghost { background: transparent; color: var(--c-text-1); border: 1px solid var(--c-line-2); }
.btn--ghost:active { background: var(--c-fill); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; box-shadow: none; }
.tag {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px 8px; border-radius: var(--r-99);
  font-size: var(--fs-11); font-weight: var(--fw-m); line-height: 1.4;
  background: var(--c-fill); color: var(--c-text-2); white-space: nowrap;
}
.tag--brand { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.tag--warn { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.tag--info { background: var(--c-info-soft); color: var(--c-info-ink); }
.tag--success { background: var(--c-success-soft); color: var(--c-success-ink); }
.tag--muted { background: var(--c-fill); color: var(--c-text-2); }
.tag--accent { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.avatar {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: var(--fs-12); font-weight: var(--fw-s); letter-spacing: -.01em;
  position: relative; overflow: hidden;
}
.avatar--sm { width: 30px; height: 30px; font-size: 11px; }
.avatar--lg { width: 44px; height: 44px; font-size: 14px; }
.avatar--xl { width: 56px; height: 56px; font-size: 17px; }
.avatar--ring { box-shadow: 0 0 0 3px var(--c-card), 0 0 0 5px var(--c-brand-soft); }
.avatar > span { position: relative; z-index: 1; }

.seg { display: flex; gap: 3px; margin: 12px 16px; padding: 3px; background: var(--c-fill); border-radius: var(--r-99); }
.seg__btn {
  flex: 1; min-height: 32px; border-radius: var(--r-99);
  font-size: var(--fs-13); color: var(--c-text-2); transition: background var(--t-fast), color var(--t-fast);
}
.seg__btn--on { background: var(--c-card); color: var(--c-text-1); font-weight: var(--fw-s); box-shadow: var(--sh-1); }

.list { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-18); overflow: hidden; box-shadow: var(--sh-1); margin: 0 16px; }
.menu-row {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; text-align: left; border-top: 1px solid var(--c-line);
  transition: background var(--t-fast);
}
.menu-row:first-child { border-top: 0; }
.menu-row:active { background: var(--c-fill-2); }
.menu-row__icon { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; background: var(--c-brand-soft); color: var(--c-brand-ink); display: grid; place-items: center; }
.menu-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu-row__main b { font-size: var(--fs-14); font-weight: var(--fw-m); }
.menu-row__main i { font-size: var(--fs-11); color: var(--c-text-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-row > svg { color: var(--c-text-3); flex: 0 0 auto; }

.empty { padding: 44px 24px; text-align: center; }
.empty__icon { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: var(--c-fill); color: var(--c-text-2); display: grid; place-items: center; }
.empty__t { font-size: var(--fs-14); font-weight: var(--fw-s); }
.empty__d { font-size: var(--fs-12); color: var(--c-text-2); margin-top: 4px; }

/* ---------- 老板端 · 首页 ---------- */
.hello { padding: 18px 18px 0; }
.hello__eyebrow { font-size: var(--fs-11); color: var(--c-text-2); letter-spacing: .06em; }
.hello__title { font-size: var(--fs-24); font-weight: var(--fw-s); letter-spacing: -.02em; line-height: 1.25; margin-top: 4px; }
.hello__sub { font-size: var(--fs-12); color: var(--c-text-2); margin-top: 3px; }
.hero-order {
  position: relative; overflow: hidden;
  margin: 14px 16px 0; padding: 18px;
  border-radius: var(--r-20);
  background: var(--c-brand-grad);
  color: var(--c-on-brand);
  box-shadow: 0 14px 30px rgba(14, 91, 87, .22);
}
.hero-order::before,
.hero-order::after {
  content: ''; position: absolute; border-radius: 50%;
  background: var(--c-image-tint); pointer-events: none;
}
.hero-order::before { width: 150px; height: 150px; right: -54px; top: -66px; }
.hero-order::after { width: 84px; height: 84px; right: 24px; bottom: -40px; background: var(--c-image-tint-2); }
.hero-order__eyebrow { display: flex; align-items: center; gap: 5px; font-size: var(--fs-11); color: var(--c-on-image-dim); letter-spacing: .08em; }
.hero-order__title { font-size: var(--fs-24); font-weight: var(--fw-s); letter-spacing: -.02em; line-height: 1.3; margin-top: 8px; }
.hero-order__bubble {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 9px 11px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px 12px 12px 4px;
  font-size: var(--fs-12); color: var(--c-on-image);
  max-width: 285px;
}
.hero-order__dot { width: 6px; height: 6px; border-radius: 50%; background: #9BE7D8; flex: 0 0 auto; }
.hero-order__flow { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: var(--fs-11); color: var(--c-on-image-dim); }
.hero-order__flow span { display: flex; align-items: center; gap: 3px; }
.hero-order__arrow { opacity: .6; }
.hero-order__actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.hero-order__actions .btn--white { min-height: 38px; padding: 0 18px; font-size: var(--fs-13); }
.hero-mic {
  display: flex; align-items: center; gap: 5px;
  min-height: 38px; padding: 0 14px; border-radius: var(--r-99);
  border: 1px solid rgba(255, 255, 255, .30);
  color: var(--c-on-image); font-size: var(--fs-12);
}
.hero-mic:active { background: rgba(255, 255, 255, .12); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 16px; }
.quick-item {
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-16);
  padding: 11px 12px; text-align: left; box-shadow: var(--sh-1);
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.quick-item:active { transform: scale(.985); border-color: var(--c-brand-weak); }
.quick-item__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.quick-item__top b { font-size: var(--fs-15); font-weight: var(--fw-s); }
.quick-item__plus { width: 22px; height: 22px; border-radius: 50%; background: var(--c-brand-soft); color: var(--c-brand); display: grid; place-items: center; }
.quick-item__spec { display: block; font-size: var(--fs-11); color: var(--c-text-2); margin-top: 1px; }
.quick-item__price { display: block; font-size: var(--fs-12); color: var(--c-brand-ink); margin-top: 7px; font-weight: var(--fw-m); }
.quick-item__price i { font-size: var(--fs-11); color: var(--c-text-2); }
.boss-tip { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 16px 0; font-size: var(--fs-11); color: var(--c-text-2); }

.order-card {
  display: block; width: calc(100% - 32px); margin: 0 16px 9px;
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-16);
  padding: 12px 14px; text-align: left; box-shadow: var(--sh-1);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.order-card:active { transform: scale(.987); border-color: var(--c-brand-weak); }
.order-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-card__no { font-size: var(--fs-13); font-weight: var(--fw-s); color: var(--c-text-1); }
.order-card__items { display: block; font-size: var(--fs-12); color: var(--c-text-2); margin: 5px 0 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card__bot { display: flex; align-items: center; gap: 6px; font-size: var(--fs-11); color: var(--c-text-2); }
.order-card__time { flex: 0 0 auto; }
.order-card__amt { margin-left: auto; font-size: var(--fs-15); font-weight: var(--fw-s); color: var(--c-text-1); }

/* ---------- 老板端 · 智能报单 ---------- */
.compose-lead { display: flex; align-items: center; gap: 9px; padding: 14px 16px 10px; }
.compose-lead__step { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--c-brand); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: var(--fw-s); }
.compose-lead span:last-child { display: flex; flex-direction: column; }
.compose-lead b { font-size: var(--fs-14); }
.compose-lead i { font-size: var(--fs-11); color: var(--c-text-2); }
.msg-card { margin: 0 16px; padding: 12px; }
.msg-card__head { display: flex; align-items: center; gap: 8px; }
.msg-card__who { flex: 1; display: flex; flex-direction: column; }
.msg-card__who b { font-size: var(--fs-13); }
.msg-card__who i { font-size: var(--fs-11); color: var(--c-text-2); }
.raw-text {
  display: block; width: 100%; min-height: 76px; margin: 9px 0 8px;
  padding: 10px 11px; border: 0; border-radius: var(--r-12);
  background: var(--c-fill); color: var(--c-text-1);
  font-size: var(--fs-13); line-height: 1.6; resize: none;
}
.msg-tools { display: flex; gap: 6px; }
.msg-tools button { display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: var(--r-99); background: var(--c-fill); font-size: var(--fs-11); color: var(--c-text-2); }
.msg-tools button:active { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.parse-loading { display: flex; align-items: center; gap: 8px; margin: 10px 16px; padding: 16px 14px; font-size: var(--fs-12); color: var(--c-text-2); }
.spinner { width: 15px; height: 15px; border: 2px solid var(--c-line); border-top-color: var(--c-brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.parse-box { margin: 10px 16px; padding: 12px 12px 6px; }
.parse-head { display: flex; align-items: center; gap: 6px; padding-bottom: 6px; font-size: var(--fs-13); font-weight: var(--fw-s); }
.parse-head > span:first-child { display: flex; align-items: center; gap: 5px; flex: 1; }
.parse-head__redo { width: 26px; height: 26px; border-radius: 50%; color: var(--c-text-2); display: grid; place-items: center; }
.parse-head__redo:active { background: var(--c-fill); }
.parse-row { padding: 9px 0; border-top: 1px solid var(--c-line); }
.parse-row__top { display: flex; align-items: center; gap: 6px; }
.parse-row__top b { font-size: var(--fs-14); }
.parse-row__spec { font-size: var(--fs-11); color: var(--c-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parse-row__amt { margin-left: auto; font-size: var(--fs-13); font-weight: var(--fw-s); }
.parse-row__del { width: 24px; height: 24px; color: var(--c-text-3); display: grid; place-items: center; border-radius: 50%; }
.parse-row__del:active { background: var(--c-fill); }
.parse-row__bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.parse-row__calc { font-size: var(--fs-11); color: var(--c-text-2); }
.stepper { display: flex; align-items: center; gap: 2px; background: var(--c-fill); border-radius: var(--r-99); padding: 2px; }
.stepper button { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--c-text-1); }
.stepper button:active { background: var(--c-card); }
.stepper b { min-width: 26px; text-align: center; font-size: var(--fs-13); font-weight: var(--fw-s); }
.parse-ignore { display: flex; align-items: center; gap: 4px; margin: 4px 0 6px; padding: 5px 8px; border-radius: var(--r-8); background: var(--c-success-soft); color: var(--c-success-ink); font-size: var(--fs-11); }
.delivery { margin: 10px 16px; padding: 12px 14px; }
.delivery__row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--c-line); }
.delivery__row:first-child { border-top: 0; }
.delivery__k { flex: 0 0 64px; font-size: var(--fs-11); color: var(--c-text-2); }
.delivery__v { flex: 1; font-size: var(--fs-12); font-weight: var(--fw-m); }
.delivery__edit { font-size: var(--fs-11); color: var(--c-brand); }
.compose-note { display: flex; align-items: center; gap: 4px; margin: 10px 18px 0; font-size: var(--fs-11); color: var(--c-text-2); }

/* ---------- 订单详情 ---------- */
.detail-hero { padding: 18px 16px 16px; background: var(--c-brand-grad); color: var(--c-on-brand); }
.detail-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.detail-hero .tag { background: rgba(255, 255, 255, .18); color: #fff; }
.detail-hero__no { font-size: var(--fs-12); color: var(--c-on-image-dim); }
.detail-hero__title { font-size: var(--fs-20); font-weight: var(--fw-s); letter-spacing: -.015em; margin-top: 10px; }
.detail-hero__sub { font-size: var(--fs-12); color: var(--c-on-image-dim); margin-top: 3px; }
.steps { display: flex; align-items: flex-start; justify-content: space-between; gap: 2px; margin-top: 16px; position: relative; }
.steps::before { content: ''; position: absolute; left: 8px; right: 8px; top: 5px; height: 1px; background: rgba(255, 255, 255, .24); }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; z-index: 1; }
.step i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .30); border: 2px solid transparent; }
.step b { font-size: 10px; font-weight: var(--fw-r); color: var(--c-on-image-dim); }
.step--done i { background: #fff; }
.step--now i { background: var(--c-card); border-color: rgba(255, 255, 255, .42); box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.step--now b { color: #fff; font-weight: var(--fw-m); }
.step--done b { color: rgba(255, 255, 255, .9); }
.info-card { margin: 12px 16px; padding: 12px 14px; }
.kv { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--c-line); }
.kv:first-child { border-top: 0; }
.kv span { flex: 0 0 64px; font-size: var(--fs-11); color: var(--c-text-2); }
.kv b { flex: 1; font-size: var(--fs-12); font-weight: var(--fw-m); text-align: right; line-height: 1.5; }
.kv--top { align-items: flex-start; }
.item-card { margin: 0 16px; padding: 12px 14px; }
.item-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--c-line); }
.item-row:first-child { border-top: 0; }
.item-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-row__main b { font-size: var(--fs-13); }
.item-row__main i { font-size: var(--fs-11); color: var(--c-text-2); }
.item-row__qty { flex: 0 0 auto; font-size: var(--fs-12); color: var(--c-text-2); }
.item-row__amt { flex: 0 0 62px; text-align: right; font-size: var(--fs-13); font-weight: var(--fw-s); }
.item-total { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; margin-top: 2px; border-top: 1px dashed var(--c-line-2); }
.item-total span { font-size: var(--fs-12); color: var(--c-text-2); }
.item-total b { font-size: var(--fs-20); font-weight: var(--fw-s); }
.tl { margin: 0 16px; padding: 12px 14px; }
.tl__row { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; position: relative; }
.tl__dot { flex: 0 0 7px; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--c-brand); }
.tl__time { flex: 0 0 38px; font-size: var(--fs-11); color: var(--c-text-2); padding-top: 1px; }
.tl__main { flex: 1; display: flex; flex-direction: column; }
.tl__main b { font-size: var(--fs-12); }
.tl__main i { font-size: var(--fs-11); color: var(--c-text-2); }
.detail-actions { display: grid; gap: 8px; padding: 4px 16px 0; }
.detail-link { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px; font-size: var(--fs-12); color: var(--c-brand); }

/* ---------- 我的 / 客户档案通用 ---------- */
.profile-card { display: flex; align-items: center; gap: 12px; margin: 12px 16px; padding: 16px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-18); box-shadow: var(--sh-1); }
.profile-card__main { flex: 1; min-width: 0; }
.profile-card__name { display: flex; align-items: center; gap: 6px; font-size: var(--fs-17); font-weight: var(--fw-s); letter-spacing: -.01em; }
.profile-card__sub { font-size: var(--fs-12); color: var(--c-text-2); margin-top: 2px; }
.profile-card__meta { font-size: var(--fs-11); color: var(--c-text-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card__edit { width: 30px; height: 30px; border-radius: 50%; background: var(--c-fill); color: var(--c-text-2); display: grid; place-items: center; align-self: flex-start; }
.stat3 { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 0 16px 14px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-16); box-shadow: var(--sh-1); overflow: hidden; }
.stat3__i { padding: 12px 6px; text-align: center; border-left: 1px solid var(--c-line); }
.stat3__i:first-child { border-left: 0; }
.stat3__i b { display: block; font-size: var(--fs-20); font-weight: var(--fw-s); letter-spacing: -.01em; }
.stat3__i span { display: block; font-size: var(--fs-11); color: var(--c-text-2); margin-top: 1px; }
.cta-card {
  display: flex; align-items: center; gap: 10px;
  width: calc(100% - 32px); margin: 4px 16px 0; padding: 14px;
  background: linear-gradient(135deg, var(--c-brand-soft) 0%, #FFF7EC 100%);
  border: 1px solid var(--c-brand-weak);
  border-radius: var(--r-18); text-align: left;
}
.cta-card:active { transform: scale(.987); }
.cta-card__icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: var(--c-brand); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-brand); }
.cta-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cta-card__main b { font-size: var(--fs-14); }
.cta-card__main i { font-size: var(--fs-11); color: var(--c-text-2); margin-top: 2px; line-height: 1.45; }
.cta-card > svg { color: var(--c-brand-ink); }

/* ---------- 供货商端 · 工作台 ---------- */
.progress-card { display: flex; align-items: center; gap: 14px; margin: 12px 16px; padding: 16px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-18); box-shadow: var(--sh-1); }
.progress-ring { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--c-brand) 0 var(--p, 75%), var(--c-line) var(--p, 75%) 100%); display: grid; place-items: center; }
.progress-ring__in { width: 66px; height: 66px; border-radius: 50%; background: var(--c-card); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.progress-ring__in b { font-size: var(--fs-20); font-weight: var(--fw-s); line-height: 1.1; }
.progress-ring__in span { font-size: 9px; color: var(--c-text-2); }
.progress-card__main { flex: 1; min-width: 0; }
.progress-card__k { font-size: var(--fs-11); color: var(--c-text-2); }
.progress-card__h { font-size: var(--fs-13); font-weight: var(--fw-m); margin-top: 2px; }
.progress-card__h b { font-size: var(--fs-16); color: var(--c-brand-ink); }
.progress-bar { height: 6px; border-radius: var(--r-99); background: var(--c-fill); overflow: hidden; margin: 7px 0 5px; }
.progress-bar span { display: block; height: 100%; border-radius: var(--r-99); background: var(--c-brand); }
.progress-card__meta { font-size: var(--fs-11); color: var(--c-text-2); }
.work-cta { display: grid; gap: 8px; margin: 0 16px 14px; }
.work-cta__btn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 12px 14px; border-radius: var(--r-16); background: var(--c-card); border: 1px solid var(--c-line); text-align: left; box-shadow: var(--sh-1); }
.work-cta__btn > span { flex: 1; display: flex; flex-direction: column; }
.work-cta__btn b { font-size: var(--fs-13); }
.work-cta__btn i { font-size: var(--fs-11); color: var(--c-text-2); }
.work-cta__btn > svg:last-child { color: var(--c-text-3); }
.work-cta__btn--primary { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); box-shadow: var(--sh-brand); }
.work-cta__btn--primary i { color: rgba(255, 255, 255, .76); }
.work-cta__btn--primary > svg:last-child { color: rgba(255, 255, 255, .76); }
.work-cta__btn--primary > svg:first-child { color: #fff; }
.pending-card { margin: 0 16px; padding: 0; overflow: hidden; }
.pending-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px 13px; border-top: 1px solid var(--c-line); text-align: left; }
.pending-row:first-child { border-top: 0; }
.pending-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pending-row__main b { font-size: var(--fs-13); }
.pending-row__main i { font-size: var(--fs-11); color: var(--c-text-2); }
.pending-row > svg { color: var(--c-text-3); }
.group-card { margin: 0 16px; padding: 0; overflow: hidden; }
.group-card__head { display: flex; align-items: center; gap: 6px; padding: 11px 13px; border-bottom: 1px solid var(--c-line); }
.group-card__head b { font-size: var(--fs-12); }
.group-card__head .tag { margin-left: auto; }
.group-card__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-success); box-shadow: 0 0 0 3px var(--c-success-soft); }
.msg-mini { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 13px; border-top: 1px solid var(--c-line); text-align: left; }
.msg-mini:first-child { border-top: 0; }
.msg-mini__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msg-mini__main b { font-size: var(--fs-12); }
.msg-mini__main i { font-size: var(--fs-11); color: var(--c-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-mini .tag { flex: 0 0 auto; }
.cust-card { margin: 0 16px; padding: 0; overflow: hidden; }
.cust-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px 13px; border-top: 1px solid var(--c-line); text-align: left; }
.cust-row:first-child { border-top: 0; }
.cust-row:active { background: var(--c-fill-2); }
.cust-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cust-row__main b { font-size: var(--fs-13); }
.cust-row__main i { font-size: var(--fs-11); color: var(--c-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-row__right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cust-row__right b { font-size: var(--fs-13); font-weight: var(--fw-s); }
.cust-row__sub { font-size: 10px; color: var(--c-text-2); }
.cust-row > svg { color: var(--c-text-3); }

/* ---------- 供货商端 · 群消息 ---------- */
.inbox-body { background: var(--c-chat-bg); }
.group-pills { display: flex; gap: 6px; padding: 10px 12px 8px; overflow-x: auto; scrollbar-width: none; }
.group-pills::-webkit-scrollbar { width: 0; }
.group-pill { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: var(--r-99); background: rgba(255, 255, 255, .76); border: 1px solid var(--c-line); font-size: var(--fs-11); color: var(--c-text-2); }
.group-pill span { font-size: 10px; color: var(--c-text-2); }
.group-pill--on { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.group-pill--on span { color: rgba(255, 255, 255, .72); }
.group-pill__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-danger); }
.sync-strip { display: flex; align-items: center; gap: 5px; margin: 0 12px 8px; padding: 6px 9px; border-radius: var(--r-8); background: rgba(255, 255, 255, .72); border: 1px solid var(--c-line); font-size: 10px; color: var(--c-text-2); }
.sync-strip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-success); box-shadow: 0 0 0 3px var(--c-success-soft); }
.sync-strip button { margin-left: auto; display: flex; align-items: center; gap: 3px; color: var(--c-brand); font-size: 10px; }
.chat-day { text-align: center; font-size: 10px; color: var(--c-text-2); margin: 4px 0 8px; }
.chat-stream { padding: 0 12px; }
.chat-msg { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 13px; }
.chat-msg__body { flex: 1; min-width: 0; }
.chat-msg__meta { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.chat-msg__meta span:first-child { font-size: 10px; color: var(--c-text-2); }
.chat-msg__meta span:last-child { font-size: 10px; color: var(--c-text-2); opacity: .8; }
.bubble {
  display: inline-block; max-width: 252px;
  padding: 8px 10px; border-radius: 3px 12px 12px 12px;
  background: var(--c-chat-in); color: var(--c-text-1);
  font-size: var(--fs-13); line-height: 1.55;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  word-break: break-word;
}
.bubble--voice { display: inline-flex; align-items: center; gap: 8px; min-width: 106px; }
.voice-wave { display: inline-flex; align-items: center; gap: 2px; height: 18px; }
.voice-wave i { display: block; width: 2px; border-radius: 2px; background: var(--c-text-1); opacity: .78; }
.bubble--voice > span:last-child { font-size: 11px; color: var(--c-text-2); }
.bubble--image { width: 172px; padding: 4px 4px 5px; }
.faux-paper { display: block; padding: 8px 9px; border-radius: 8px; background: #FFFDF8; border: 1px solid #E6DFD1; }
.faux-paper i { display: block; height: 3px; border-radius: 2px; background: #D8D0BF; margin-bottom: 5px; }
.faux-paper i:nth-child(2) { width: 82%; }
.faux-paper i:nth-child(3) { width: 92%; }
.faux-paper i:nth-child(4) { width: 68%; }
.faux-paper i:nth-child(5) { width: 86%; }
.faux-paper i.short { width: 46%; margin-bottom: 0; }
.bubble__cap { display: block; font-size: 10px; color: var(--c-text-2); margin-top: 3px; text-align: center; }
.parse-card {
  display: flex; align-items: center; gap: 7px;
  margin-top: 5px; padding: 7px 9px;
  background: var(--c-card); border: 1px solid var(--c-line); border-left: 3px solid var(--c-success);
  border-radius: var(--r-8); box-shadow: var(--sh-1);
}
.parse-card--warn { border-left-color: var(--c-accent); }
.parse-card--note { border-left-color: var(--c-info); }
.parse-card__icon { flex: 0 0 auto; color: var(--c-success); }
.parse-card--warn .parse-card__icon { color: var(--c-accent); }
.parse-card--note .parse-card__icon { color: var(--c-info); }
.parse-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.parse-card__main b { font-size: 11px; font-weight: var(--fw-s); }
.parse-card__main i { font-size: 10px; color: var(--c-text-2); line-height: 1.45; }
.parse-card__go { flex: 0 0 auto; font-size: 10px; font-weight: var(--fw-m); color: var(--c-brand); }
.sys-msg { text-align: center; margin: 6px 12px 8px; }
.sys-msg span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: var(--r-99); background: rgba(0, 0, 0, .05); font-size: 10px; color: var(--c-text-2); }
.chat-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin: 6px 12px 0; font-size: 10px; color: var(--c-text-2); line-height: 1.6; }
.chat-foot button { color: var(--c-brand); font-size: 10px; margin-left: 2px; }
.inbox-body .demo-note { color: var(--c-text-2); }

/* ---------- 供货商端 · 确认解析 ---------- */
.review-intro { display: flex; align-items: flex-start; gap: 8px; margin: 12px 16px; padding: 12px; border-radius: var(--r-14); background: var(--c-brand-soft); color: var(--c-brand-ink); }
.review-intro > svg { flex: 0 0 auto; margin-top: 1px; }
.review-intro span { display: flex; flex-direction: column; }
.review-intro b { font-size: var(--fs-13); }
.review-intro i { font-size: var(--fs-11); line-height: 1.55; margin-top: 2px; color: var(--c-text-2); }
.quote-card { margin: 0 16px 12px; padding: 12px; }
.quote-card__head { display: flex; align-items: center; gap: 8px; }
.quote-card__head > span { display: flex; flex-direction: column; }
.quote-card__head b { font-size: var(--fs-12); }
.quote-card__head span span { font-size: 10px; color: var(--c-text-2); }
.bubble--quote { display: block; margin-top: 8px; background: var(--c-fill); border-radius: var(--r-10); box-shadow: none; font-size: var(--fs-13); }
.review-list { display: grid; gap: 8px; margin: 0 16px; }
.review-row { padding: 11px 12px; background: var(--c-card); border: 1px solid var(--c-line); border-left: 3px solid var(--c-success); border-radius: var(--r-14); box-shadow: var(--sh-1); }
.review-row--warn { border-left-color: var(--c-accent); background: #FFFDF9; }
.review-row__top { display: flex; align-items: center; gap: 6px; }
.review-row__top b { font-size: var(--fs-15); }
.review-row__amt { margin-left: auto; font-size: var(--fs-15); font-weight: var(--fw-s); }
.review-row__meta { font-size: var(--fs-11); color: var(--c-text-2); margin-top: 3px; }
.review-row__q { display: flex; align-items: center; gap: 4px; font-size: var(--fs-12); color: var(--c-accent-ink); margin-top: 7px; }
.opt-chips { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.opt-chip { padding: 6px 10px; border-radius: var(--r-99); border: 1px solid var(--c-line-2); background: var(--c-card); font-size: var(--fs-12); color: var(--c-text-2); }
.opt-chip--on { border-color: var(--c-brand); background: var(--c-brand-soft); color: var(--c-brand-ink); font-weight: var(--fw-m); }
.review-hint { display: flex; align-items: center; gap: 4px; margin: 10px 18px 0; font-size: var(--fs-11); color: var(--c-text-2); line-height: 1.55; }
.amend-option { display: flex; align-items: center; gap: 9px; width: 100%; padding: 12px; border-radius: var(--r-14); border: 1px solid var(--c-line); background: var(--c-card); text-align: left; }
.amend-option--on { border-color: var(--c-brand); background: var(--c-brand-soft-2); box-shadow: 0 0 0 1px var(--c-brand) inset; }
.radio { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--c-line-2); display: grid; place-items: center; color: #fff; }
.amend-option--on .radio { background: var(--c-brand); border-color: var(--c-brand); }
.amend-option__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.amend-option__main b { font-size: var(--fs-13); }
.amend-option__main i { font-size: var(--fs-11); color: var(--c-text-2); margin-top: 1px; }
.amend-option__amt { font-size: var(--fs-13); font-weight: var(--fw-s); }

/* ---------- 供货商端 · 今日汇总 ---------- */
.sum-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 0 16px 12px; padding: 10px 0; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-14); box-shadow: var(--sh-1); }
.sum-stats > div { text-align: center; border-left: 1px solid var(--c-line); }
.sum-stats > div:first-child { border-left: 0; }
.sum-stats b { display: block; font-size: var(--fs-18); font-weight: var(--fw-s); letter-spacing: -.01em; }
.sum-stats span { font-size: 10px; color: var(--c-text-2); }
.cat-block { margin: 0 16px 12px; }
.cat-head { display: flex; align-items: center; gap: 6px; padding: 0 4px 6px; font-size: var(--fs-12); font-weight: var(--fw-s); color: var(--c-text-1); }
.cat-head span { font-size: 10px; color: var(--c-text-2); font-weight: var(--fw-r); }
.sum-card { padding: 0; overflow: hidden; }
.sum-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--c-line); cursor: pointer; }
.sum-row:first-child { border-top: 0; }
.check { position: relative; flex: 0 0 20px; width: 20px; height: 20px; }
.check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.check i { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--c-line-2); display: grid; place-items: center; color: transparent; background: var(--c-card); }
.check input:checked + i { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.sum-row__main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 5px; }
.sum-row__main b { font-size: var(--fs-13); }
.sum-row__main .sum-row__meta { font-size: 10px; color: var(--c-text-2); }
.sum-row__qty { flex: 0 0 72px; text-align: right; font-size: var(--fs-12); }
.sum-row__qty .sum-row__meta { font-size: 10px; color: var(--c-text-2); }
.sum-row__amt { flex: 0 0 70px; text-align: right; font-size: var(--fs-12); font-weight: var(--fw-s); }
.summary-note { display: flex; align-items: center; gap: 4px; margin: 0 18px 8px; font-size: 10px; color: var(--c-text-2); }
.summary-bar {
  position: absolute; left: 0; right: 0; bottom: calc(var(--h-tab) + var(--h-home));
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; background: var(--c-glass); border-top: 1px solid var(--c-line);
  backdrop-filter: blur(14px); z-index: 25;
}
.summary-bar__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.summary-bar__main b { font-size: var(--fs-13); }
.summary-bar__main span { font-size: 10px; color: var(--c-text-2); }
.summary-bar .btn { min-height: 38px; padding: 0 16px; font-size: var(--fs-13); }

/* ---------- 客户档案 ---------- */
.search-box { display: flex; align-items: center; gap: 6px; margin: 12px 16px 8px; padding: 8px 12px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-99); color: var(--c-text-2); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--fs-13); color: var(--c-text-1); }
.search-box input::placeholder { color: var(--c-text-2); opacity: .8; }
.chips { display: flex; gap: 6px; padding: 0 16px 10px; flex-wrap: wrap; }
.chip { padding: 5px 11px; border-radius: var(--r-99); border: 1px solid var(--c-line); background: var(--c-card); font-size: var(--fs-11); color: var(--c-text-2); }
.chip--on { background: var(--c-brand-soft); border-color: var(--c-brand-weak); color: var(--c-brand-ink); font-weight: var(--fw-m); }
.sheet-note { font-size: var(--fs-13); line-height: 1.8; color: var(--c-text-2); }
.usual-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--c-line); font-size: var(--fs-13); }
.usual-row:first-child { border-top: 0; }
.usual-row span { display: flex; flex-direction: column; }
.usual-row i { font-size: var(--fs-11); color: var(--c-text-2); }
.usual-row > span:last-child { font-size: var(--fs-12); color: var(--c-brand-ink); }
.contact-card { display: flex; align-items: center; gap: 10px; padding: 8px 0 12px; }
.contact-card__main { display: flex; flex-direction: column; }
.contact-card__main b { font-size: var(--fs-15); }
.contact-card__main span { font-size: var(--fs-11); color: var(--c-text-2); }
.cust-sheet__head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line); }
.cust-sheet__head > div { flex: 1; display: flex; flex-direction: column; }
.cust-sheet__head b { font-size: var(--fs-15); }
.cust-sheet__head span { font-size: var(--fs-11); color: var(--c-text-2); }
.cust-sheet__kv { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-12); }
.cust-sheet__kv > span:first-child { flex: 0 0 70px; color: var(--c-text-2); font-size: var(--fs-11); }
.cust-sheet__kv > b { flex: 1; font-weight: var(--fw-m); text-align: right; }
.mini-chips { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.mini-chip { padding: 2px 7px; border-radius: var(--r-99); background: var(--c-fill); font-size: 10px; color: var(--c-text-2); }
.sheet-input { display: block; width: 100%; margin: 6px 0; padding: 9px 11px; border: 1px solid var(--c-line-2); border-radius: var(--r-10); font-size: var(--fs-13); background: var(--c-card); }
.sheet-textarea { display: block; width: 100%; min-height: 96px; padding: 10px 11px; border: 1px solid var(--c-line-2); border-radius: var(--r-10); font-size: var(--fs-13); line-height: 1.6; resize: none; background: var(--c-card); }
.sheet-tip { display: flex; align-items: flex-start; gap: 4px; margin-top: 8px; font-size: var(--fs-11); color: var(--c-text-2); line-height: 1.55; }
.sheet-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--c-line); font-size: var(--fs-12); }
.sheet-kv span { color: var(--c-text-2); font-size: var(--fs-11); }
.printer-card { display: flex; align-items: center; gap: 9px; padding: 8px 0 12px; }
.printer-card__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-success); box-shadow: 0 0 0 4px var(--c-success-soft); }
.printer-card > div { flex: 1; display: flex; flex-direction: column; }
.printer-card b { font-size: var(--fs-14); }
.printer-card span { font-size: var(--fs-11); color: var(--c-text-2); }

/* ---------- 出货单 / 纸张 ---------- */
.note-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 10px 16px; padding: 6px 10px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-99); }
.note-pager button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--c-text-1); }
.note-pager button:disabled { opacity: .28; }
.note-pager span { display: flex; flex-direction: column; align-items: center; }
.note-pager b { font-size: var(--fs-12); }
.note-pager i { font-size: 9px; color: var(--c-text-2); }
.paper-wrap { margin: 0 16px; transition: transform .18s var(--ease-out); }
.paper-wrap.paper-flash { transform: translateY(-3px) scale(.995); }
.paper {
  position: relative; width: 100%; aspect-ratio: 148 / 210;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  padding: 13px 12px 16px;
  background: var(--c-paper); color: var(--c-paper-ink);
  border: 1px solid #E5DED0; border-radius: 2px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .13);
  font-size: 10px; line-height: 1.35;
  overflow: hidden;
}
.paper__brand { display: flex; align-items: center; gap: 6px; padding-bottom: 6px; border-bottom: 1.5px solid var(--c-paper-ink); }
.paper__logo { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 4px; background: var(--c-stamp); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: var(--fw-s); }
.paper__co { flex: 1; display: flex; flex-direction: column; }
.paper__co b { font-size: 12px; letter-spacing: .02em; }
.paper__co i { font-size: 8px; color: var(--c-text-2); }
.paper__doc { text-align: right; display: flex; flex-direction: column; }
.paper__doc b { font-size: 12px; letter-spacing: .05em; }
.paper__doc i { font-size: 7px; color: var(--c-text-2); letter-spacing: .08em; }
.paper__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; margin: 6px 0; }
.paper__meta > div { display: flex; align-items: baseline; gap: 3px; min-width: 0; }
.paper__meta span { flex: 0 0 34px; font-size: 8px; color: var(--c-text-2); }
.paper__meta b { font-size: 9px; font-weight: var(--fw-m); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paper__meta-wide { grid-column: 1 / -1; }
.paper__meta-wide span { flex-basis: 44px; }
.paper__table { width: 100%; border-collapse: collapse; font-size: 9px; }
.paper__table th { padding: 3px 2px; border-top: 1px solid var(--c-paper-ink); border-bottom: 1px solid var(--c-paper-line); font-size: 8px; font-weight: var(--fw-m); text-align: left; color: var(--c-text-2); }
.paper__table td { padding: 3px 2px; border-bottom: 1px solid #EDE7DA; vertical-align: top; }
.paper__table th:nth-child(n+4), .paper__table td:nth-child(n+4) { text-align: right; }
.paper__table .paper__no { width: 14px; color: var(--c-text-2); }
.paper__table .paper__name { font-weight: var(--fw-m); }
.paper__table .paper__spec { color: var(--c-text-2); font-size: 8px; }
.paper__table .paper__qty, .paper__table .paper__price, .paper__table .paper__amount { white-space: nowrap; }
.paper__totals { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--c-paper-line); }
.paper__upper { font-size: 8px; color: var(--c-text-2); line-height: 1.4; }
.paper__sum { display: flex; align-items: baseline; gap: 5px; }
.paper__sum span { font-size: 8px; color: var(--c-text-2); }
.paper__sum b { font-size: 15px; font-weight: var(--fw-s); }
.paper__note { display: flex; gap: 4px; margin-top: 5px; font-size: 8px; color: var(--c-text-2); line-height: 1.45; }
.paper__note span { flex: 0 0 auto; color: var(--c-paper-ink); }
.paper__sign { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 8px; }
.paper__stamp {
  position: absolute; right: 24px; bottom: 34px;
  width: 52px; height: 52px; border: 1.2px solid var(--c-stamp); border-radius: 50%;
  color: var(--c-stamp); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 6px; line-height: 1.3; transform: rotate(-12deg); opacity: .82;
}
.paper__stamp span:first-child { font-size: 8px; font-weight: var(--fw-s); }
.paper__foot { position: absolute; left: 12px; right: 12px; bottom: 6px; display: flex; justify-content: space-between; gap: 6px; font-size: 7px; color: var(--c-text-2); border-top: 1px solid #EDE7DA; padding-top: 3px; }
.paper--dense { font-size: 9px; padding-top: 11px; }
.paper--dense .paper__table td { padding: 2px; }
.paper--dense .paper__table th { padding: 2px; }
.paper--dense .paper__brand { padding-bottom: 4px; }
.paper--dense .paper__meta { margin: 4px 0; }
.paper--dense .paper__sign { margin-top: 4px; }
.paper--dense .paper__stamp { bottom: 30px; }
.note-info { margin: 12px 16px; padding: 10px 13px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-14); box-shadow: var(--sh-1); }
.note-info__row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--c-line); font-size: var(--fs-11); }
.note-info__row:first-child { border-top: 0; }
.note-info__row span { flex: 0 0 66px; color: var(--c-text-2); font-size: var(--fs-11); }
.note-info__row b { flex: 1; font-size: var(--fs-12); font-weight: var(--fw-m); }
.note-info__row button { color: var(--c-brand); font-size: var(--fs-11); }
.note-hint { display: flex; align-items: center; gap: 4px; margin: 0 18px; font-size: var(--fs-11); color: var(--c-text-2); }

/* ---------- 固定底栏 ---------- */
.action-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px calc(var(--h-home) + 10px);
  background: var(--c-glass); border-top: 1px solid var(--c-line);
  backdrop-filter: blur(14px); z-index: 26;
}
.action-bar__sum { flex: 0 0 auto; display: flex; flex-direction: column; }
.action-bar__sum span { font-size: 10px; color: var(--c-text-2); }
.action-bar__sum b { font-size: var(--fs-20); font-weight: var(--fw-s); letter-spacing: -.01em; }
.action-bar--compose .btn, .action-bar--review .btn { flex: 1; }
.action-bar--note .btn { flex: 1; }
.action-bar--note .btn--ghost { flex: 0 0 96px; }

/* ---------- 弹层 / 抽屉 / toast ---------- */
.layer { position: absolute; inset: 0; z-index: 70; pointer-events: none; }
.layer--on { pointer-events: auto; }
.mask { position: absolute; inset: 0; background: var(--c-mask); opacity: 0; transition: opacity var(--t-base) var(--ease-out); }
.layer--on .mask { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 86%; overflow-y: auto;
  padding: 7px 16px calc(var(--h-home) + 14px);
  background: var(--c-card); border-radius: var(--r-20) var(--r-20) 0 0;
  transform: translateY(100%); transition: transform var(--t-base) var(--ease-out);
  z-index: 2;
}
.layer--on .sheet { transform: none; }
.sheet__handle { width: 36px; height: 4px; border-radius: 99px; background: var(--c-line-2); margin: 0 auto 10px; }
.sheet__title { font-size: var(--fs-17); font-weight: var(--fw-s); text-align: center; }
.sheet__desc { font-size: var(--fs-12); color: var(--c-text-2); text-align: center; margin-top: 3px; line-height: 1.5; }
.sheet__body { padding: 10px 0 4px; }
.sheet__actions { display: grid; gap: 8px; padding-top: 10px; }
.opt { display: flex; flex-direction: column; width: 100%; padding: 11px 4px; border-top: 1px solid var(--c-line); text-align: left; }
.opt:first-child { border-top: 0; }
.opt__label { font-size: var(--fs-14); }
.opt__desc { font-size: var(--fs-11); color: var(--c-text-2); margin-top: 2px; }
.opt__right { position: absolute; right: 4px; }
.opt--on .opt__label { color: var(--c-brand-ink); font-weight: var(--fw-m); }
.opt--danger .opt__label { color: var(--c-danger); }
.opt { position: relative; }
.dialog {
  position: absolute; left: 50%; top: 50%; width: 280px;
  transform: translate(-50%, -50%) scale(.94); opacity: 0;
  background: var(--c-card); border-radius: var(--r-18); overflow: hidden;
  transition: transform var(--t-base) var(--ease-spring), opacity var(--t-base);
  z-index: 2;
}
.layer--on .dialog { transform: translate(-50%, -50%); opacity: 1; }
.dialog__body { padding: 20px 18px 14px; text-align: center; }
.dialog__title { font-size: var(--fs-16); font-weight: var(--fw-s); }
.dialog__text { font-size: var(--fs-12); color: var(--c-text-2); margin-top: 6px; line-height: 1.6; }
.dialog__foot { display: flex; border-top: 1px solid var(--c-line); }
.dialog__btn { flex: 1; height: 44px; font-size: var(--fs-14); color: var(--c-text-2); border-left: 1px solid var(--c-line); }
.dialog__btn:first-child { border-left: 0; }
.dialog__btn--primary { color: var(--c-brand); font-weight: var(--fw-m); }
.center-card {
  position: absolute; left: 50%; top: 50%; width: 302px;
  transform: translate(-50%, -50%) scale(.94); opacity: 0;
  padding: 22px 18px 16px; background: var(--c-card); border-radius: var(--r-22);
  text-align: center; z-index: 2;
  transition: transform var(--t-base) var(--ease-spring), opacity var(--t-base);
}
.layer--on .center-card { transform: translate(-50%, -50%); opacity: 1; }
.center-card__icon { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; background: var(--c-success); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(28, 140, 97, .28); }
.center-card__title { font-size: var(--fs-20); font-weight: var(--fw-s); }
.center-card__sub { font-size: var(--fs-12); color: var(--c-text-2); margin-top: 4px; }
.center-card__note { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 10px 0 14px; padding: 8px; background: var(--c-brand-soft); color: var(--c-brand-ink); border-radius: var(--r-10); font-size: var(--fs-11); line-height: 1.45; }
.center-card .btn { margin-top: 7px; }
.toast {
  position: absolute; left: 50%; bottom: calc(var(--h-home) + 96px);
  transform: translate(-50%, 8px); opacity: 0;
  max-width: 300px; padding: 8px 14px; border-radius: var(--r-99);
  background: var(--c-scrim); color: #fff; font-size: var(--fs-12); line-height: 1.45;
  text-align: center; z-index: 80; pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
}
.toast--on { opacity: 1; transform: translate(-50%, 0); }
.qr-modal {
  position: absolute; left: 50%; top: 50%; width: 300px;
  transform: translate(-50%, -50%) scale(.94); opacity: 0;
  padding: 20px 18px 16px; background: var(--c-card); border-radius: var(--r-22);
  text-align: center; z-index: 2;
  transition: transform var(--t-base) var(--ease-spring), opacity var(--t-base);
}
.layer--on .qr-modal { transform: translate(-50%, -50%); opacity: 1; }
.qr-modal__close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: var(--c-fill); color: var(--c-text-2); display: grid; place-items: center; }
.qr-modal__eyebrow { font-size: var(--fs-11); color: var(--c-brand); letter-spacing: .1em; font-weight: var(--fw-m); }
.qr-modal__title { font-size: var(--fs-18); font-weight: var(--fw-s); margin-top: 4px; }
.qr-modal__img { width: 204px; height: 204px; margin: 12px auto 8px; padding: 7px; border: 1px solid var(--c-line); border-radius: var(--r-12); background: #fff; }
.qr-modal__img img { width: 100%; height: 100%; border-radius: 6px; }
.qr-modal__note { font-size: var(--fs-11); color: var(--c-text-2); line-height: 1.6; }
.qr-modal__safe { display: flex; align-items: center; justify-content: center; gap: 3px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--c-line); font-size: 10px; color: var(--c-text-2); }

/* 动效弱化 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 手机竖屏：机身铺满 ---------- */
@media (max-width: 480px) {
  html, body { height: 100%; overflow: hidden; }
  .stage { padding: 0; gap: 0; min-height: 100%; display: block; }
  .stage__brand, .stage__hint, .stage__link { display: none !important; }
  .device { position: fixed; inset: 0; width: 100vw; height: 100dvh; border-radius: 0; box-shadow: none; }
  .device__notch { display: none; }
  .statusbar { display: none; }
  .homebar { display: none; }
  :root { --h-status: 0px; --h-home: 0px; }
  .page__body--tabbed { padding-bottom: calc(var(--h-tab) + 76px); }
  .action-bar { padding-bottom: 10px; }
  .sheet { padding-bottom: 16px; }
  .toast { bottom: 96px; }
}

/* ---------- 真实打印：只打印纸 ---------- */
@media print {
  @page { size: A5; margin: 6mm; }
  body * { visibility: hidden; }
  .paper-wrap, .paper-wrap * { visibility: visible; }
  .paper-wrap { position: absolute; left: 0; top: 0; width: 100%; margin: 0; }
  .paper { width: 100%; height: auto; border: 0; box-shadow: none; border-radius: 0; }
}

/* ---------- 舞台顶部保护（全局标准，见 docs/设计/01-视觉规范.md 4.6） ----------
   品牌区两行封顶：标题、副标题各占一行，超长省略号，不换行去挤机身；
   机身缩放要扣掉这块高度，见 index.html 的 fit()。 */
.stage__brand { max-width: min(92vw, 560px); }
.stage__brand > span:last-child { min-width: 0; }
.stage__title, .stage__sub { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
