/* ============================================================
 * 交互原型 · 小程序 UI 组件层
 * 所有尺寸以 375px 逻辑视口为准，对应设计稿 750rpx。
 * 组件名与设计文档一致：BidStatusBar / VehicleStatusTag / VehicleListCard …
 * ============================================================ */

/* ---------------- 手机画板骨架 ---------------- */
.phone {
  width: var(--phone-w); height: var(--phone-h);
  background: var(--bg); border-radius: 30px; overflow: hidden;
  position: relative; display: flex; flex-direction: column;
  box-shadow: 0 18px 50px rgba(20,32,46,.18), 0 0 0 1px rgba(20,32,46,.10);
  flex: none;
}
.statusbar {
  height: var(--statusbar-h); flex: none; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 600; color: var(--ink-900); background: #fff;
  letter-spacing: .2px;
}
.statusbar .r { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 500; color: var(--ink-700); }
.statusbar .bat { display: inline-block; width: 17px; height: 9px; border: 1px solid var(--ink-700); border-radius: 2px; position: relative; }
.statusbar .bat::after { content:""; position:absolute; inset:1px; right:4px; background: var(--ink-700); border-radius:1px; }
.statusbar .bat::before { content:""; position:absolute; right:-3px; top:2px; width:2px; height:4px; background:var(--ink-700); border-radius:0 1px 1px 0; }

.navbar {
  height: var(--navbar-h); flex: none; background: #fff; position: relative;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(228,233,240,.7);
}
.navbar .ttl { font-size: var(--fs-nav); font-weight: 600; color: var(--ink-900); }
.navbar .back {
  position: absolute; left: 10px; top: 0; height: var(--navbar-h);
  display: flex; align-items: center; gap: 3px; padding: 0 6px;
  font-size: var(--fs-sm); color: var(--ink-700); min-width: var(--tap-min);
}
.navbar .back[hidden] { display: none; }
.navbar .capsule {
  position: absolute; right: 10px; top: 7px; height: 30px; min-width: 74px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 11px; color: var(--ink-400); letter-spacing: 1px;
  pointer-events: none; /* 系统胶囊区：设计上不放置任何自定义元素 */
}
.navbar .capsule .cap-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-400); box-shadow: 7px 0 0 var(--ink-400), -7px 0 0 var(--ink-400); }
.navbar .capsule .cap-ring { width: 13px; height: 13px; border: 1.4px solid var(--ink-400); border-radius: 50%; position: relative; }
.navbar .capsule .cap-ring::after { content:""; position:absolute; inset:3.5px; border-radius:50%; background:var(--ink-400); }

.screen { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--bg); }
.page-view {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.page-view::-webkit-scrollbar { width: 4px; }
.page-view::-webkit-scrollbar-thumb { background: #D6DEE8; border-radius: 2px; }
.page-view.enter { animation: pageIn .24s var(--ease-sheet) both; }
.page-view.enter-back { animation: pageInBack .24s var(--ease-sheet) both; }
@keyframes pageIn { from { opacity:.5; transform: translateX(26px); } to { opacity:1; transform:none; } }
@keyframes pageInBack { from { opacity:.5; transform: translateX(-26px); } to { opacity:1; transform:none; } }

.page-inner { padding: var(--pad-page); padding-bottom: 24px; }
.page-inner.has-dock { padding-bottom: 112px; }
.page-inner.has-tabbar { padding-bottom: 20px; }

.tabbar {
  height: var(--tabbar-h); flex: none; background: #fff;
  border-top: 1px solid var(--line); display: flex;
}
.tabbar[hidden] { display: none; }
.tabitem {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: var(--fs-xs); color: var(--ink-400); min-height: var(--tap-min);
  transition: color .2s ease;
}
.tabitem.on { color: var(--brand); font-weight: 600; }
.tabitem[hidden] { display: none; }
/* V1.5：tabBar 中间项「发起竞价」，自定义 tabBar 按角色渲染 */
.tabitem.mid { color: var(--brand); font-weight: 600; gap: 1px; }
.tabitem.mid .midic {
  width: 27px; height: 27px; border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(30, 78, 121, .28);
}
.tabitem.mid.on .midic { background: #173F62; }
.tabitem svg { display: block; }
.safe-bar {
  height: var(--safe-h); flex: none; background: #fff; position: relative;
}
.safe-bar i {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 8px;
  width: 108px; height: 4px; border-radius: 3px; background: var(--ink-900); opacity: .82;
}
.safe-bar[hidden] { display: none; }

/* ---------------- 通用卡片 / 文本 ---------------- */
.card {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card);
  border: 1px solid rgba(228,233,240,.8);
  padding: var(--pad-card); margin-bottom: var(--gap-card);
}
.card.pad-lg { padding: var(--pad-card-lg); }
.card-h { font-size: var(--fs-h3); font-weight: 600; color: var(--ink-900); margin-bottom: 10px; display:flex; align-items:center; justify-content:space-between; }
.card-h small { font-size: var(--fs-xs); font-weight: 400; color: var(--ink-400); }
.lbl { font-size: var(--fs-sm); color: var(--ink-500); margin-bottom: 4px; }
.kicker { font-size: var(--fs-tag); color: var(--ink-500); letter-spacing: .6px; margin-bottom: 8px; }
.hintline { font-size: var(--fs-xs); color: var(--ink-400); margin-top: 8px; line-height: 1.6; }
.sec-gap { height: 4px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap-min); padding: 0 16px; border-radius: var(--r-btn);
  font-size: var(--fs-body); font-weight: 600; text-align: center;
  transition: background .16s ease, opacity .16s ease; user-select: none;
}
.btn.pri { background: var(--brand); color: #fff; }
.btn.pri:active { background: #173F63; }
.btn.sec { background: #fff; color: var(--brand); border: 1px solid var(--brand-line); }
.btn.sec:active { background: var(--brand-soft); }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--line); }
.btn.ghost:active { background: var(--hover); }
.btn.dis, .btn:disabled { background: #EDF1F5 !important; color: var(--ink-400) !important; border-color: #EDF1F5 !important; cursor: not-allowed; }
.btn.block { display: flex; width: 100%; }
.btn.sm { min-height: 36px; font-size: var(--fs-sm); padding: 0 14px; }
.btn.loading { pointer-events: none; opacity: .72; }
.btn.loading::before { content:""; width:14px; height:14px; margin-right:8px; border:2px solid rgba(255,255,255,.45); border-top-color:#fff; border-radius:50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- A1 BidStatusBar 竞价状态条 ---------------- */
.bidbar { background: var(--brand-soft); border-color: var(--brand-line); padding: 14px 12px; }
.bidbar .top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.bidbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.bidbar .stage { font-size: var(--fs-h3); font-weight: 700; color: var(--brand); }
.bidbar .cd { margin-left: auto; font-size: var(--fs-count); font-weight: 700; color: var(--brand); }
.bidbar .cd-lbl { font-size: var(--fs-tag); color: var(--ink-500); margin-top: 5px; }
.bidbar .metarow { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(30,78,121,.14); font-size: var(--fs-xs); color: var(--ink-700); }
.bidbar .metarow b { color: var(--brand); font-weight: 700; }
.bidbar .bidno { margin-top: 8px; font-size: var(--fs-tag); color: var(--ink-500); line-height: 1.6; }
.bidbar.phases-on .phases { margin-top: 10px; }
.phases { display: flex; gap: 6px; margin-top: 10px; }
.phases .ph { flex: 1; padding: 7px 8px; border-radius: 6px; background: rgba(255,255,255,.62); border: 1px solid rgba(30,78,121,.14); font-size: var(--fs-tag); color: var(--ink-500); line-height: 1.5; }
.phases .ph small { display: block; font-size: 9px; color: var(--ink-400); margin-top: 2px; }
.phases .ph.done { color: var(--ink-500); }
.phases .ph.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.phases .ph.on small { color: rgba(255,255,255,.78); }
/* 语义变体 */
.bidbar.is-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.bidbar.is-warn .dot { background: var(--warn); }
.bidbar.is-warn .stage, .bidbar.is-warn .cd { color: #8A5A00; }
.bidbar.is-warn .metarow b { color: #8A5A00; }
.bidbar.is-warn .phases .ph.on { background: var(--warn); border-color: var(--warn); }
.bidbar.is-ok { background: var(--ok-bg); border-color: var(--ok-line); }
.bidbar.is-ok .dot { background: var(--ok); }
.bidbar.is-ok .stage { color: var(--ok); }
.bidbar.is-idle { background: #EFF2F6; border-color: #DFE5EC; }
.bidbar.is-idle .dot { background: var(--idle); }
.bidbar.is-idle .stage { color: var(--idle); }

/* ---------------- A4 VehicleStatusTag 车辆状态徽标 ---------------- */
.vtag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px; border-radius: var(--r-tag);
  background: rgba(255,255,255,.94); border: 1px solid #C9D5E1;
  color: var(--ink-700); font-size: var(--fs-tag); font-weight: 600;
  white-space: nowrap; line-height: 1.4;
}
.vtag i { width: 6px; height: 6px; border-radius: 1px; background: var(--idle); flex: none; }
.vtag.ok { border-color: var(--ok-line); color: var(--ok); }
.vtag.ok i { background: var(--ok); }
.vtag.idle { border-color: #D7E0EA; color: var(--ink-500); }
.vtag.idle i { background: var(--idle); }
.vtag.short { font-size: 9px; padding: 2px 5px; gap: 4px; }

/* ---------------- A2 价格 ---------------- */
.price { font-size: var(--fs-price); font-weight: 700; color: var(--brand); line-height: 1.2; letter-spacing: -.5px; }
.price .y { font-size: 17px; font-weight: 600; margin-right: 3px; }
.price.ok { color: var(--ok); }
.price.none { font-size: 20px; color: var(--ink-400); font-weight: 600; }
.price-meta { font-size: var(--fs-xs); color: var(--ink-500); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.price-meta b { color: var(--ink-900); }
.price-meta .sep { color: var(--line); }

/* ---------------- A3 车辆照片 ---------------- */
.photo { position: relative; height: 188px; border-radius: 8px; overflow: hidden; background: #E9EFF5; margin-bottom: 12px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .vtag { position: absolute; top: 9px; right: 9px; }
.photo .cnt { position: absolute; right: 9px; bottom: 9px; background: rgba(20,32,46,.62); color: #fff; font-size: var(--fs-tag); padding: 2px 7px; border-radius: 10px; }
.photo .zoom-hint { position:absolute; left:9px; bottom:9px; background:rgba(20,32,46,.55); color:#fff; font-size:9px; padding:3px 7px; border-radius:10px; }
/* V1.3：缩略图条移除；多图改由 wx.previewImage 原生左右滑动查看 */

/* ---------------- A5 车辆信息 ---------------- */
.car-title { font-size: var(--fs-title); font-weight: 600; color: var(--ink-900); line-height: 1.4; }
.car-no { font-size: var(--fs-xs); color: var(--ink-400); margin-top: 3px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 12px; }
.spec .k { font-size: var(--fs-tag); color: var(--ink-400); }
.spec .v { font-size: var(--fs-sm); color: var(--ink-700); margin-top: 2px; word-break: break-all; }
.rowline { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-sm); color: var(--ink-700); padding: 9px 0; border-top: 1px solid var(--line); margin-top: 10px; line-height: 1.5; }
.rowline b { color: var(--ink-900); }
.rowline.link { justify-content: space-between; align-items: center; min-height: var(--tap-min); cursor: pointer; }
.rowline.link:active { background: var(--hover); }
.rowline.disabled { color: var(--ink-400); cursor: default; }
.rowline.report { align-items: center; min-height: var(--tap-min); }
.report-link { color: var(--brand); font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.report-link:active { opacity: .65; }
.report-none { color: var(--ink-400); font-size: var(--fs-sm); }
.remark { font-size: var(--fs-xs); color: var(--ink-500); line-height: 1.6; margin-top: 8px; }

/* V1.3：报价记录明细卡与规则说明卡已移除，相关组件样式一并清理 */

/* ---------------- 提示条 ---------------- */
.notice { font-size: var(--fs-xs); color: var(--ink-700); line-height: 1.7; background: #F3F6F9; border: 1px solid #E1E7EE; border-radius: 8px; padding: 10px 12px; margin-bottom: var(--gap-card); }
.notice.blue { background: var(--brand-soft); border-color: var(--brand-line); color: #254E73; }
.notice.warn { background: var(--warn-bg); border-color: var(--warn-line); color: #8A5A00; }
.notice.danger { background: var(--danger-bg); border-color: var(--danger-line); color: #93272D; }
.notice b { font-weight: 700; }

/* ---------------- A9 吸底操作栏 ---------------- */
.dock-host { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; pointer-events: none; }
.dock { background: #fff; box-shadow: var(--sh-dock); border-top: 1px solid var(--line); padding: 10px var(--pad-page) 0; pointer-events: auto; }
.dock .btns { display: flex; gap: 9px; }
.dock .btns .btn { flex: 1; }
.dock .tip { font-size: var(--fs-tag); color: var(--ink-400); text-align: center; padding: 6px 0 2px; line-height: 1.5; }
.dock .safe { height: var(--safe-h); position: relative; }
.dock .safe i { position: absolute; left: 50%; transform: translateX(-50%); bottom: 8px; width: 108px; height: 4px; border-radius: 3px; background: var(--ink-900); opacity: .82; }

/* ---------------- 首页 / 我的 入口卡 ---------------- */
.entry {
  display: flex; align-items: center; gap: 12px; min-height: 72px;
  background: #fff; border: 1px solid rgba(228,233,240,.9); border-radius: var(--r-card);
  box-shadow: var(--sh-card); padding: 12px; margin-bottom: var(--gap-card); cursor: pointer;
  transition: background .12s ease;
}
.entry:active { background: #EDF2F7; }
.entry .eicon { width: 40px; height: 40px; flex: none; border-radius: 9px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; }
.entry .etxt { flex: 1; min-width: 0; }
.entry .etxt b { display: block; font-size: var(--fs-h3); color: var(--ink-900); font-weight: 600; }
.entry .etxt small { display: block; font-size: var(--fs-xs); color: var(--ink-500); margin-top: 3px; }
.entry .earrow { font-size: 20px; color: var(--ink-400); flex: none; }
.page-lead { font-size: var(--fs-xs); color: var(--ink-500); margin: 2px 2px 14px; }
.page-foot { font-size: var(--fs-tag); color: var(--ink-400); text-align: center; margin-top: 18px; line-height: 1.7; }

.idcard { background: var(--brand); color: #fff; border-radius: var(--r-card); padding: 16px; margin-bottom: 14px; }
.idcard .nm { font-size: 19px; font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.idcard .nm img { width: 40px; height: 40px; border-radius: 20px; border: 2px solid rgba(255,255,255,.7); }
.idcard .row { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.idcard .tagx { font-size: var(--fs-xs); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); padding: 3px 8px; border-radius: 4px; }
.idcard .ph { font-size: var(--fs-xs); color: rgba(255,255,255,.82); margin-top: 12px; }

/* ---------------- V1.4 首页横向分段 + 底部发起 + 添加车辆 ---------------- */
.home-seg { height: 44px; margin-bottom: 12px; }
.home-seg button { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; }
.home-seg button.on::after { left: 24%; right: 24%; }
.home-seg svg { display: block; }
.dock.in-tab { padding-bottom: 10px; }
.dock.in-tab .btns .btn.sec { flex: 0 0 42%; }
.dock.in-tab .tip { padding-bottom: 0; }
.addbar { display: flex; align-items: center; justify-content: space-between; min-height: var(--tap-min);
  padding: 0 12px; margin-bottom: 10px; background: #fff; border: 1px dashed var(--brand-line);
  border-radius: 8px; color: var(--brand); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.addbar:active { background: var(--brand-soft); }
.addbar span { color: var(--ink-400); font-size: 17px; }
.form-card { padding: 2px 12px; }
.frow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: 0; }
.frow label { display: block; font-size: var(--fs-xs); color: var(--ink-500); margin-bottom: 5px; }
.frow label i { color: var(--danger); font-style: normal; margin-left: 3px; }
.frow label span { color: var(--ink-400); font-weight: 400; }
.vinp { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--field); padding: 8px 10px; font-size: var(--fs-sm); color: var(--ink-900); outline: 0; }
.vinp:focus { border-color: var(--brand); background: #fff; }
textarea.vinp { min-height: 62px; resize: vertical; line-height: 1.6; }
.frow.bad .vinp { border-color: var(--danger); background: var(--danger-bg); }
.form-note { font-size: var(--fs-tag); color: var(--ink-400); line-height: 1.7; margin: 4px 2px 12px; }

/* ---------------- L1 搜索栏 ---------------- */
.sbar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; background: var(--field); border: 1px solid var(--line); border-radius: 5px; margin-bottom: 10px; }
.sbar svg { flex: none; }
.sbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--fs-sm); color: var(--ink-900); }
.sbar input::placeholder { color: var(--ink-400); }
.sbar .clr { width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #DCE3EB; color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.countbar { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--ink-500); margin: 2px 2px 10px; }
.countbar b { color: var(--brand); font-weight: 700; }
.hit { font-size: var(--fs-tag); color: var(--brand); background: var(--brand-soft); border-left: 2px solid var(--brand); padding: 5px 8px; border-radius: 0 4px 4px 0; margin-bottom: 10px; }

/* ---------------- VehicleListCard ---------------- */
.lcard { background: #fff; border: 1px solid rgba(228,233,240,.9); border-radius: var(--r-card); box-shadow: var(--sh-card); margin-bottom: var(--gap-card); overflow: hidden; cursor: pointer; transition: background .12s ease; }
.lcard:active { background: var(--hover); }
.lcard .lmain { display: flex; gap: 12px; padding: 12px; }
.lthumb { position: relative; width: 100px; height: 100px; flex: none; border-radius: 8px; overflow: hidden; background: #E9EFF5; }
.lthumb img { width: 100%; height: 100%; object-fit: cover; }
.lthumb .vtag { position: absolute; top: 5px; left: 5px; }
.linfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.linfo .ltitle { font-size: var(--fs-h3); font-weight: 600; color: var(--ink-900); line-height: 1.35; }
.linfo .lno { font-size: var(--fs-tag); color: var(--ink-400); margin-top: 3px; }
.linfo .lmeta { font-size: var(--fs-xs); color: var(--ink-500); margin-top: 6px; line-height: 1.5; }
.linfo .lprice { margin-top: auto; font-size: 18px; font-weight: 700; color: var(--brand); }
.linfo .lprice small { font-size: var(--fs-tag); font-weight: 400; color: var(--ink-400); margin-left: 4px; }
.linfo .lprice.none { color: var(--ink-400); font-size: var(--fs-body); }
.linfo .lprice.ok { color: var(--ok); }
.sbarmini { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line); background: #FAFCFE; font-size: var(--fs-xs); font-weight: 600; color: var(--brand); min-height: 32px; }
.sbarmini .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.sbarmini .cd { margin-left: auto; color: var(--ink-500); font-weight: 400; }
.sbarmini.ok { color: var(--ok); background: #F5FBF8; }
.sbarmini.ok .dot { background: var(--ok); }
.sbarmini.warn { color: #8A5A00; background: #FEF9F0; }
.sbarmini.warn .dot { background: var(--warn); }
.sbarmini.idle { color: var(--idle); background: #F7F9FB; }
.sbarmini.idle .dot { background: var(--idle); }
.sbarmini.urgent .cd { color: var(--warn); font-weight: 700; }
.self-badge { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-tag); color: var(--brand); background: var(--brand-soft); border-radius: 3px; padding: 2px 5px; margin-top: 5px; }

/* ---------------- 分段控件 / 空态 / 骨架 / 错误态 ---------------- */
.segment { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: var(--gap-card); overflow: hidden; }
.segment button { flex: 1; min-height: var(--tap-min); font-size: var(--fs-body); color: var(--ink-500); position: relative; }
.segment button.on { color: var(--brand); font-weight: 600; }
.segment button.on::after { content:""; position:absolute; left: 28%; right: 28%; bottom: 0; height: 2px; background: var(--brand); border-radius: 2px; }
.empty { text-align: center; padding: 38px 16px 30px; }
.empty img { width: 132px; margin: 0 auto 14px; opacity: .9; }
.empty b { display: block; font-size: var(--fs-h3); color: var(--ink-700); }
.empty p { font-size: var(--fs-xs); color: var(--ink-400); line-height: 1.7; margin: 7px 0 16px; }
.empty .btn { min-width: 130px; }
.skeleton { background: #fff; border-radius: var(--r-card); padding: 12px; margin-bottom: var(--gap-card); box-shadow: var(--sh-card); }
.sk { height: 12px; border-radius: 4px; background: linear-gradient(90deg,#EEF2F6 25%,#F7F9FB 50%,#EEF2F6 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; margin-bottom: 10px; }
.sk:last-child { margin-bottom: 0; }
.sk.h1 { height: 22px; width: 55%; } .sk.h2 { width: 80%; } .sk.h3 { width: 40%; } .sk.h4 { width: 30%; height: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------- 浮层 / 弹层 / Toast ---------------- */
.overlay-host { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.mask { position: absolute; inset: 0; background: rgba(20,32,46,.44); pointer-events: auto; animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; background: #fff;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--sh-sheet);
  padding: 8px 16px 0; pointer-events: auto; animation: sheetIn .24s var(--ease-sheet) both;
  max-height: 86%; overflow-y: auto;
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
.sheet .handle { width: 34px; height: 4px; border-radius: 3px; background: #D9E1EA; margin: 0 auto 12px; }
.sheet h4 { font-size: var(--fs-title); font-weight: 600; color: var(--ink-900); margin-bottom: 4px; }
.sheet .sh-sub { font-size: var(--fs-xs); color: var(--ink-500); margin-bottom: 12px; }
.vsum { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 8px; padding: 9px; margin-bottom: 14px; }
.vsum img { width: 52px; height: 42px; border-radius: 5px; object-fit: cover; }
.vsum b { display: block; font-size: var(--fs-sm); color: var(--ink-900); }
.vsum small { display: block; font-size: var(--fs-tag); color: var(--ink-400); margin-top: 3px; }
.amount-inp { display: flex; align-items: center; gap: 6px; border: 1px solid var(--brand-line); border-radius: var(--r-btn); padding: 0 12px; height: 52px; background: #fff; margin-bottom: 10px; }
.amount-inp.err { border-color: var(--danger); }
.amount-inp .y { font-size: 18px; font-weight: 600; color: var(--ink-700); }
.amount-inp input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 24px; font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.amount-inp input::placeholder { font-size: var(--fs-body); font-weight: 400; color: var(--ink-400); }
.quick { display: flex; gap: 8px; margin-bottom: 10px; }
.quick button { flex: 1; min-height: 36px; border: 1px solid var(--line); border-radius: 6px; font-size: var(--fs-sm); color: var(--ink-700); background: #fff; }
.quick button.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.rulehint { font-size: var(--fs-tag); color: var(--ink-500); line-height: 1.7; margin-bottom: 14px; }
.sheet-foot { display: flex; gap: 9px; margin: 0 -16px; padding: 12px 16px 0; border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; }
.sheet .safe { height: var(--safe-h); position: relative; }
.sheet .safe i { position: absolute; left: 50%; transform: translateX(-50%); bottom: 8px; width: 108px; height: 4px; border-radius: 3px; background: var(--ink-900); opacity: .82; }

.modal { position: absolute; left: 28px; right: 28px; top: 50%; transform: translateY(-50%); background: #fff; border-radius: 12px; padding: 20px 18px 16px; pointer-events: auto; animation: modalIn .18s ease-out both; box-shadow: 0 12px 40px rgba(20,32,46,.2); }
@keyframes modalIn { from { opacity: 0; transform: translateY(-50%) scale(.96); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.modal h4 { font-size: var(--fs-title); font-weight: 600; color: var(--ink-900); margin-bottom: 10px; }
.modal p { font-size: var(--fs-sm); color: var(--ink-700); line-height: 1.7; }
.modal .timebox { background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: var(--fs-sm); color: var(--ink-700); margin: 12px 0 16px; line-height: 1.9; }
.modal .timebox b { color: var(--brand); }
.modal .btns { display: flex; gap: 9px; }
.modal .btns .btn { flex: 1; }

.toast-host { position: absolute; left: 0; right: 0; top: 42%; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.toast { background: rgba(20,32,46,.9); color: #fff; font-size: var(--fs-sm); line-height: 1.5; padding: 10px 16px; border-radius: 8px; max-width: 290px; text-align: center; animation: toastIn .16s ease both; box-shadow: 0 6px 20px rgba(20,32,46,.2); }
.toast.ok { background: rgba(22,122,90,.94); }
.toast.err { background: rgba(180,35,42,.94); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .2s ease both; }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* 模拟微信原生文档查看器（明确标注：不是小程序页面） */
.pdf-viewer { position: absolute; inset: 0; background: #4A4F55; z-index: 55; display: flex; flex-direction: column; pointer-events: auto; animation: fadeIn .2s ease both; }
.pdf-viewer .pv-nav { height: 44px; background: #2B2F34; color: #fff; display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: var(--fs-sm); flex: none; }
.pdf-viewer .pv-nav .x { font-size: 20px; cursor: pointer; min-width: var(--tap-min); }
.pdf-viewer .pv-tag { font-size: 9px; color: rgba(255,255,255,.6); margin-left: auto; text-align: right; line-height: 1.3; }
.pdf-viewer .pv-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; justify-content: center; }
.pv-page { background: #fff; width: 100%; max-width: 320px; min-height: 420px; padding: 22px 20px; box-shadow: 0 4px 18px rgba(0,0,0,.3); color: var(--ink-900); }
.pv-page h5 { font-size: 16px; text-align: center; margin-bottom: 4px; }
.pv-page .pv-sub { font-size: 10px; text-align: center; color: var(--ink-400); margin-bottom: 18px; }
.pv-page .pv-row { display: flex; justify-content: space-between; font-size: var(--fs-xs); padding: 9px 0; border-bottom: 1px solid var(--line); }
.pv-page .pv-row span:first-child { color: var(--ink-500); }
.pv-page .pv-note { font-size: 10px; color: var(--ink-400); line-height: 1.8; margin-top: 18px; }

/* 模拟 wx.previewImage（图片放大） */
.image-preview { position: absolute; inset: 0; background: rgba(0,0,0,.92); z-index: 55; display: flex; flex-direction: column; pointer-events: auto; animation: fadeIn .2s ease both; }
.image-preview .ip-top { height: 50px; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: var(--fs-sm); flex: none; }
.image-preview .ip-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.image-preview img { width: 100%; border-radius: 4px; }
.image-preview .ip-bottom { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgba(255,255,255,.7); font-size: var(--fs-xs); flex: none; }
.image-preview .ip-bottom span { flex: 1; text-align: center; }
.image-preview .ip-bottom button { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 8px 10px; font-size: var(--fs-xs); min-height: 34px; }
.image-preview .ip-bottom button:disabled { opacity: .35; }

/* 授权页 */
.auth-wrap { padding: 56px 24px 0; text-align: center; }
.auth-wrap .logo { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px; }
.auth-wrap h2 { font-size: 19px; font-weight: 700; color: var(--ink-900); }
.auth-wrap .desc { font-size: var(--fs-sm); color: var(--ink-500); line-height: 1.9; margin-top: 8px; }
.auth-wrap .icon-circle { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.auth-wrap .icon-circle.danger { background: var(--danger-bg); }
.auth-wrap .icon-circle.warn { background: var(--warn-bg); }
.auth-wrap .act { margin-top: 52px; }
.auth-wrap .fine { font-size: var(--fs-tag); color: var(--ink-400); line-height: 1.8; margin-top: 14px; }

/* ---- V1.6 企微免密登录（主通道）：授权中 / 授权失败 ---- */
.lwecom { margin-top: 34px; padding: 22px 18px; border: 1px solid var(--line); border-radius: 14px; background: #F7F9FB; }
.lwecom .wt { font-size: var(--fs-sm); color: var(--ink-700); line-height: 1.8; display: flex; align-items: center; gap: 6px; justify-content: center; }
.lwecom .ws { font-size: var(--fs-tag); color: var(--ink-400); margin-top: 10px; line-height: 1.7; }
.lwecom.err { border-color: #F0C6C6; background: #FDF4F4; }
.lwecom.err .btn { margin-top: 16px; }
.spin { width: 26px; height: 26px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid #DCE3EB; border-top-color: #1E4E79; animation: sb-spin .9s linear infinite; }
@keyframes sb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.auth-wrap .act.alt { margin-top: 10px; }
/* ---- V1.6 登录：手机号 + 密码（同一 auth-wrap 容器，异常态复用其上） ---- */
.auth-wrap .act.login { margin-top: 22px; }
.lfield { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  margin-top: 10px; text-align: left; transition: border-color .15s, box-shadow .15s; }
.lfield:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 3px rgba(30,78,121,.07); }
.lfield.err { border-color: var(--danger-line); background: var(--danger-bg); }
.lfield input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: var(--fs-body); color: var(--ink-900); padding: 0; }
.lfield input::placeholder { color: var(--ink-400); font-size: var(--fs-sm); }
.lfield .leye { flex: 0 0 auto; width: 26px; height: 26px; padding: 0; border: 0;
  background: transparent; display: flex; align-items: center; justify-content: center; }
.lerr { display: flex; align-items: center; gap: 5px; margin-top: 10px; text-align: left;
  font-size: var(--fs-sm); color: var(--danger); line-height: 1.6; }
.logout { margin-top: 22px; padding-bottom: 6px; }

/* ============================================================
 * V1.5 后台页面（仅管理员）· 与用户端共用品牌色，密度更高
 * ============================================================ */
.ad-card { background: var(--card, #fff); border-radius: 12px; padding: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow, 0 1px 2px rgba(20,32,46,.06)); }
.ad-h { display: flex; align-items: center; justify-content: space-between; font-size: 14px;
  font-weight: 600; color: #1E2A36; margin-bottom: 10px; }
.ad-h small { font-size: 11px; font-weight: 400; color: #6B7C90; }
.ad-f { display: flex; align-items: center; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px solid #EFF2F6; font-size: 13px; gap: 10px; }
.ad-f:last-child { border-bottom: 0; }
.ad-f label { font-size: 12px; color: #6B7C90; flex: 0 0 auto; }
.ad-f .v { font-size: 13px; color: #1E2A36; font-weight: 500; text-align: right; }
.ad-f .v.ph { color: #93A2B3; font-weight: 400; }
.ad-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #EFF2F6; }
.ad-row:last-child { border-bottom: 0; }
.ad-av { width: 34px; height: 34px; border-radius: 50%; background: #EAF2F9; color: #1E4E79;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600;
  flex: 0 0 34px; }
.ad-grow { flex: 1; min-width: 0; }
.ad-nm { font-size: 13px; font-weight: 600; color: #1E2A36; }
.ad-sub { font-size: 11px; color: #6B7C90; margin-top: 2px; }
.ad-ar { color: #93A2B3; font-size: 16px; padding: 2px 2px; }
.ad-tag { display: inline-block; border-radius: 4px; padding: 1px 6px; font-size: 10px; font-weight: 600;
  background: #EAF2F9; color: #1E4E79; border: 1px solid #D3E2EF; margin-left: 2px; }
.ad-tag.grey { background: #F1F4F8; color: #7A8794; border-color: #E1E7EE; }
.ad-tag.ok { background: #EDF7F0; color: #2E7D45; border-color: #CDE8D6; }
.ad-tag.warn { background: #FFF7E8; color: #8A5A00; border-color: #F0D9AC; }
.ad-tag.danger { background: #FDF1F2; color: #B4232A; border-color: #F3D2D5; }
.ad-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-pill { border: 1px solid #DDE5EE; background: #fff; border-radius: 8px; padding: 5px 10px;
  font-size: 11px; color: #4A5A6B; }
.ad-pill.on { background: #1E4E79; border-color: #1E4E79; color: #fff; font-weight: 600; }
.ad-note { font-size: 11px; color: #6B7C90; line-height: 1.65; margin-top: 8px; }
.ad-note.warn { color: #8A5A00; }
.ad-search { display: flex; align-items: center; gap: 8px; height: 36px; background: #F8FAFC;
  border: 1px solid #E4E9F0; border-radius: 10px; padding: 0 10px; font-size: 12px;
  color: #93A2B3; margin-bottom: 10px; }
.ad-tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.ad-tbl th { text-align: left; font-weight: 600; color: #6B7C90; padding: 6px 4px;
  border-bottom: 1px solid #E4E9F0; font-size: 10px; }
.ad-tbl td { padding: 7px 4px; border-bottom: 1px solid #F1F4F8; color: #33465C; vertical-align: top; }
.ad-tbl tr:last-child td { border-bottom: 0; }

/* ---- A6 系统配置：可配项表单行 ---- */
.ad-cfg-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid #EFF2F6; }
.ad-cfg-row:last-child { border-bottom: 0; }
.ad-cfg-l { flex: 1; min-width: 0; }
.ad-cfg-l b { display: block; font-size: 12.5px; color: #1E2A36; font-weight: 600; }
.ad-cfg-l small { display: block; font-size: 10.5px; color: #8C9AAC; line-height: 1.6; margin-top: 3px; }
.ad-cfg-l em { display: block; font-size: 10.5px; color: #B4232A; font-style: normal; margin-top: 4px; line-height: 1.5; }
.ad-cfg-row.bad { background: #FDF1F2; border-radius: 6px; padding-left: 8px; padding-right: 8px; }
.ad-cfg-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ad-cfg-inp { width: 96px; height: 32px; border: 1px solid #E4E9F0; border-radius: 8px; background: #fff;
  padding: 0 8px; font-size: 13px; color: #1E2A36; text-align: right; font-weight: 600; }
.ad-cfg-inp:focus { outline: none; border-color: #1E4E79; }
.ad-cfg-sw { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 32px;
  padding: 0 12px; border: 1px solid #E4E9F0; border-radius: 8px; background: #F8FAFC; color: #6B7C90;
  font-size: 12px; font-weight: 600; cursor: pointer; }
.ad-cfg-sw.on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
.ad-unit { font-size: 10px; color: #93A2B3; text-align: right; }

/* ==========================================================================
 * V1.4 新增组件样式（预热盲拍 / 自动延时 / 三段 / 我的报价记录）
 * 依据：首页 V1.4 §4、详情页 V1.4 §3–§4、列表页 V1.4 组件契约
 * ========================================================================== */

/* ---- 首页三段 SegBar3：三项等宽，字号略收，选中态下划线居中 ---- */
.segment.seg3 button { font-size: 12.5px; gap: 4px; padding: 0 2px; }
.segment.seg3 button svg { flex: none; }
.segment.seg3 button.on::after { left: 18%; right: 18%; }
.home-seg.seg3 { height: 42px; }

/* ---- BlindNote 段级盲拍说明条（仅预热段，不可关闭、不折叠） ---- */
.blind-note {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 10px;
}
.blind-note svg { flex: none; margin-top: 1px; }
.blind-note b { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--brand); line-height: 1.5; }
.blind-note small { display: block; font-size: var(--fs-tag); color: var(--ink-500); line-height: 1.6; margin-top: 3px; }

/* ---- BlindChip 卡内盲拍标识：容器无段级说明时必显，同容器等高等宽 ---- */
.blind-chip {
  display: flex; align-items: center; gap: 5px; height: 26px;
  padding: 0 12px; background: var(--brand-soft); border-top: 1px solid var(--brand-line);
  color: var(--brand); font-size: var(--fs-tag); font-weight: 600; white-space: nowrap;
}
.blind-chip svg { flex: none; }
.blind-chip.ph { background: #FAFCFE; border-top-color: var(--line); }
.lcard.withchip .lmain { min-height: 124px; }
.lwinner { font-size: var(--fs-tag); color: var(--ink-500); margin-top: 4px; line-height: 1.5; }
/* 混合列表等高占位：只占布局不可见，使无「中标团队」行的卡片与成交卡同行数同高度 */
.lwinner.ph { visibility: hidden; }
.lprice.ro small { display: inline; margin-left: 6px; font-size: 9.5px; }
.lprice.ro { font-size: 12.5px; font-weight: 600; }

/* ---- 详情页 BlindBar 盲拍标识条（价格卡顶部，全页唯一解释处） ---- */
.blind-bar {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: 8px; padding: 10px 11px; margin-bottom: 12px;
}
.blind-bar svg { flex: none; margin-top: 1px; }
.blind-bar b { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--brand); line-height: 1.5; }
.blind-bar small { display: block; font-size: var(--fs-tag); color: var(--ink-500); line-height: 1.6; margin-top: 2px; }

/* ---- 自动延时：预警态 / 已重置态 + 倒计时变色 + 状态条转绿 ---- */
.delay-bar { display: flex; align-items: center; gap: 6px; border-radius: 6px;
  padding: 8px 10px; margin-top: 10px; font-size: var(--fs-xs); line-height: 1.5; }
.delay-bar.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: #8A5A00; }
.delay-bar.ok { background: #E7F3EE; border: 1px solid #CDE5D9; color: #0F6B4F; font-weight: 600; }
.delay-bar svg { flex: none; }
.bidbar.is-delay { background: #EAF5F0; border-color: #CDE5D9; }
.bidbar.is-delay .dot { background: #0F6B4F; }
.bidbar.is-delay .cd { color: #0F6B4F; }
.bidbar .cd.big { font-size: 26px; }
.bidbar .cd.delayed { color: #0F6B4F; font-weight: 700; }
.sbarmini.delayed { color: #0F6B4F; background: #E7F3EE; }
.sbarmini.delayed .dot { background: #0F6B4F; }
.sbarmini.delayed .cd { color: #0F6B4F; font-weight: 700; }
.sbarmini .dl { background: #fff; border: 1px solid #CDE5D9; border-radius: 3px;
  padding: 1px 5px; font-size: 9.5px; margin-left: 2px; }
.sbarmini.delayed.urgent .cd { color: #0F6B4F; }

/* ---- 阶段迁移 / 阶段切换引导卡（会话内一次） ---- */
.guide-card { background: #EAF5F0; border: 1px solid #CDE5D9; border-radius: 8px;
  padding: 10px 12px; margin-bottom: 10px; cursor: pointer; }
.guide-card b { display: block; font-size: var(--fs-sm); color: #0F6B4F; font-weight: 700; line-height: 1.5; }
.guide-card span { display: block; font-size: var(--fs-xs); color: var(--ink-700); margin-top: 3px; line-height: 1.6; }
.guide-card small { display: block; font-size: var(--fs-tag); color: var(--ink-500); margin-top: 3px; line-height: 1.6; }
.notice.slim { padding: 8px 10px; font-size: var(--fs-xs); line-height: 1.6; }

/* ---- 我的报价记录：并入价格卡内部，不单独成卡 ---- */
.myrec { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.myrec-h { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.myrec-h small { font-weight: 400; color: var(--ink-400); font-size: var(--fs-tag); margin-left: 5px; }
.myrec-body { max-height: 132px; overflow-y: auto; }
.rec-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid #F1F4F8; font-size: var(--fs-xs); }
.rec-row:last-child { border-bottom: 0; }
.rec-row.cur { background: #F4F9FC; border-radius: 4px; padding-left: 5px; padding-right: 5px; }
.rec-amt { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; min-width: 76px; }
.rec-amt.old { color: var(--ink-400); font-weight: 400; text-decoration: line-through; }
.rec-at { color: var(--ink-400); font-size: var(--fs-tag); margin-left: auto; }
.rec-cur { font-size: 9px; color: var(--brand); background: var(--brand-soft); border-radius: 3px; padding: 1px 4px; }
.rec-tag { font-size: 9px; color: var(--ink-500); background: #F1F4F8; border-radius: 3px; padding: 1px 4px; }
.rec-tag.warm { color: var(--brand); background: var(--brand-soft); }

/* ---- 发起浮层：预热时长档位 ---- */
.lbl-sub { font-size: var(--fs-tag); font-weight: 400; color: var(--ink-400); margin-left: 5px; }
.warm-mins { display: flex; gap: 8px; margin-bottom: 12px; }
.warm-mins button { flex: 1; min-height: 36px; border: 1px solid var(--line); border-radius: 6px;
  font-size: var(--fs-sm); color: var(--ink-700); background: #fff; }
.warm-mins button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ---- Toast 副行（自动延时「倒计时已重置为 20:00」） ---- */
.toast .sub { display: block; font-size: var(--fs-xs); opacity: .88; margin-top: 2px; }

/* ---- 后台浮层标题（A3-2 / A3-3 复用 .sheet 容器） ---- */
.sheet .sh-h { font-size: var(--fs-title); font-weight: 600; color: var(--ink-900);
  padding: 4px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }

