:root {
  /* 明快鲜亮的企业级 B2B 活力色板（告别暗沉墨黑，采用高明度翠绿 + 科技蓝 + 亮琥珀） */
  --brand-700: #047857;
  --brand-600: #059669;
  --brand-500: #10b981;
  --brand-400: #34d399;
  --brand-100: #d1fae5;
  --brand-50: #ecfdf5;

  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --purple-600: #7c3aed;
  --purple-100: #ede9fe;

  --red-600: #ef4444;
  --red-100: #fee2e2;
  --red-50: #fef2f2;

  --slate-900: #1e293b;
  --slate-800: #334155;
  --slate-700: #475569;
  --slate-600: #64748b;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-150: #edf2f7;
  --slate-100: #f1f5f9;
  --slate-50: #f6f9fc;

  --radius-xl: 16px;
  --radius-lg: 13px;
  --radius-md: 9px;
  --radius-sm: 6px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 12% 10%, #ecfdf5 0%, #f4f7f9 54%, #edf2f7 100%);
  color: var(--slate-900);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden {
  display: none !important;
}

/* ==================== 舞台与左侧双边联调指挥台 ==================== */
.mp-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 100vh;
  padding: 18px;
}

.mp-simulator-sidebar {
  width: 328px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border: 1px solid #ffffff;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(16, 185, 129, 0.08), 0 4px 12px rgba(37, 99, 235, 0.05);
  color: var(--slate-900);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sim-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--slate-100);
}

.sim-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #34d399 0%, #10b981 55%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.sim-brand-text {
  flex: 1;
  min-width: 0;
}

.sim-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sim-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}

.sim-env-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 5px;
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  color: #ffffff;
  letter-spacing: 0.04em;
}

.sim-subtitle {
  font-size: 11.5px;
  color: var(--slate-500);
  margin-top: 1px;
}

.sim-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sim-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate-800);
}

.sim-section-hint {
  font-size: 10.5px;
  color: var(--slate-400);
}

/* 全链路 4 步业务流转剧本节点 */
.sim-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sim-flow-node {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7.5px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-align: left;
  position: relative;
}

.sim-flow-node:hover {
  background: #f0fdf4;
  border-color: #34d399;
}

.sim-flow-node.active {
  background: linear-gradient(90deg, #ecfdf5 0%, #ffffff 100%);
  border-color: #6ee7b7;
  border-left: 3.5px solid #10b981;
}

.sim-flow-node.active-warn {
  background: linear-gradient(90deg, #fffbeb 0%, #ffffff 100%);
  border-color: #fcd34d;
  border-left: 3.5px solid #f59e0b;
}

.sim-flow-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #dbeafe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sim-flow-node.active .sim-flow-num {
  background: #10b981;
  color: #ffffff;
}

.sim-flow-node.active-warn .sim-flow-num {
  background: #f59e0b;
  color: #ffffff;
}

.sim-flow-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sim-flow-info strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-900);
}

.sim-flow-info span {
  font-size: 10.5px;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-flow-go {
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
}

/* 企业角色双列网格切换器 */
.sim-group-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--slate-600);
  margin: 2px 0 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sim-group-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.sim-group-dot.buyer {
  background: #3b82f6;
}

.sim-group-dot.seller {
  background: #10b981;
}

.sim-acc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.sim-acc-btn {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  text-align: left;
  padding: 6.5px 9px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--slate-800);
}

.sim-acc-btn:hover {
  border-color: #34d399;
  background: #f0fdf4;
}

.sim-acc-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}

.sim-acc-name {
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-acc-perm {
  font-size: 10px;
  color: var(--slate-400);
}

.sim-acc-btn.active .sim-acc-perm {
  color: #ecfdf5;
}

.sim-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--slate-100);
}

.sim-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8.5px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.sim-action-btn.secondary {
  background: #f1f5f9;
  color: var(--slate-700);
}

.sim-action-btn.secondary:hover {
  background: #e2e8f0;
}

.sim-action-btn.primary-outline {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.sim-action-btn.primary-outline:hover {
  opacity: 0.94;
}

/* ==================== 手机真机容器 ==================== */
.mp-device-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-device {
  width: 412px;
  height: min(868px, calc(100vh - 32px));
  background: var(--slate-50);
  border-radius: 44px;
  border: 9px solid #1e293b;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.mp-shell.fullscreen-mode {
  padding: 0;
}

.mp-shell.fullscreen-mode .mp-simulator-sidebar {
  display: none;
}

.mp-shell.fullscreen-mode .mp-device {
  width: 100vw;
  max-width: 500px;
  height: 100vh;
  border-radius: 0;
  border: none;
}

@media (max-width: 840px) {
  .mp-shell {
    padding: 0;
  }
  .mp-simulator-sidebar {
    display: none;
  }
  .mp-device {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
  }
}

/* ==================== 微信顶部状态栏与胶囊导航栏（明快鲜亮翠绿渐变顶栏，告别暗沉墨黑） ==================== */
.wx-statusbar {
  height: 26px;
  padding: 0 22px;
  background: #047857;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.wx-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wx-5g {
  font-size: 10px;
  font-weight: 700;
}

.wx-navbar {
  height: 42px;
  padding: 0 12px;
  background: #047857;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.wx-nav-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.wx-back-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
}

.wx-back-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.wx-nav-title {
  font-size: 15.5px;
  font-weight: 700;
  margin-left: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-capsule {
  height: 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  padding: 0 3px;
  flex-shrink: 0;
}

.wx-capsule-btn {
  width: 32px;
  height: 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.wx-capsule-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.3);
}

/* ==================== 顶部企业身份与视角切换栏 ==================== */
.wx-hero-header {
  background: linear-gradient(180deg, #047857 0%, #059669 64%, var(--slate-50) 64%);
  padding: 4px 12px 2px;
  flex-shrink: 0;
}

.wx-hero-header.compact-mode {
  background: linear-gradient(90deg, #047857 0%, #059669 100%);
  padding: 2px 12px 8px;
}

.wx-compact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 12px;
}

.wx-compact-company {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  min-width: 0;
}

.wx-compact-company span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-role-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 11px 12px;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.12);
  border: 1px solid #d1fae5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.role-card-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.role-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-avatar.buyer {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

.role-bar-info {
  min-width: 0;
  flex: 1;
}

.role-bar-company {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-bar-sub {
  font-size: 11px;
  color: var(--slate-500);
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.role-pill-switch {
  display: flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 2px;
  flex-shrink: 0;
}

.wx-compact-bar .role-pill-switch {
  background: rgba(255, 255, 255, 0.2);
}

.role-pill-btn {
  padding: 4px 8.5px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-600);
}

.wx-compact-bar .role-pill-btn {
  color: rgba(255, 255, 255, 0.88);
}

.role-pill-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.wx-compact-bar .role-pill-btn.active {
  background: #ffffff;
  color: #059669;
}

/* ==================== 主视图内容区 ==================== */
.wx-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 8px 11px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
}

.wx-viewport::-webkit-scrollbar {
  display: none;
}

/* ==================== 面包屑与来源单据穿透条 ==================== */
.mp-context-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 11px;
  color: var(--slate-600);
}

.mp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.mp-bc-link {
  color: var(--slate-500);
  font-weight: 600;
}

.mp-bc-link:hover {
  color: #10b981;
}

.mp-bc-sep {
  color: var(--slate-300);
}

.mp-bc-cur {
  color: var(--slate-900);
  font-weight: 700;
  font-family: var(--font-mono);
}

.mp-doc-jump-link {
  color: #2563eb;
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

/* ==================== 5 阶段连线式主流程轨（Connected Stepper） ==================== */
.mp-stepper-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 8px 9px;
  margin-top: 8px;
}

.mp-stepper {
  display: grid;
  grid-template-columns: repeat(var(--step-count, 5), 1fr);
  position: relative;
}

.mp-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* 节点间水平连接线（精准留出圆圈半径间距，绝不穿字） */
.mp-step-node:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 10px;
  right: calc(50% + 12px);
  width: calc(100% - 24px);
  height: 2px;
  background: #cbd5e1;
}

.mp-step-node.done:not(:first-child)::before,
.mp-step-node.active:not(:first-child)::before {
  background: #10b981;
}

.mp-step-node.warn-active:not(:first-child)::before {
  background: #f59e0b;
}

.mp-step-circle {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.mp-step-node.done .mp-step-circle {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.mp-step-node.active .mp-step-circle {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.mp-step-node.warn-active .mp-step-circle {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.mp-step-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-600);
  line-height: 1.25;
}

.mp-step-node.active .mp-step-title {
  color: #2563eb;
  font-weight: 800;
}

.mp-step-node.warn-active .mp-step-title {
  color: #d97706;
  font-weight: 800;
}

.mp-step-sub {
  font-size: 9.5px;
  color: var(--slate-400);
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

.mp-stepper-banner {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}

.mp-stepper-banner-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-700);
  font-weight: 600;
  min-width: 0;
}

/* ==================== 创意五阶供应链流转脉冲轨（Supply-Chain Flow Pulse Engine） ==================== */
.mp-flow-engine {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 6px 10px;
}

.mp-flow-line {
  position: absolute;
  top: 29px;
  left: 11%;
  right: 11%;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cbd5e1 0%, #34d399 45%, #059669 55%, #cbd5e1 100%);
  background-size: 200% 100%;
  animation: mpFlowShimmer 3.6s linear infinite;
  z-index: 0;
}

@keyframes mpFlowShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes mpPulseWarn {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.42); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes mpPulseEmerald {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.36); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.mp-flow-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2px 1px;
  border-radius: 9px;
}

.mp-flow-node:hover .mp-flow-orb {
  transform: translateY(-2px);
}

.mp-flow-orb-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mp-flow-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.mp-flow-node.is-clear .mp-flow-orb {
  border-color: #a7f3d0;
  color: #059669;
  background: #ffffff;
}

.mp-flow-node.is-active .mp-flow-orb {
  border-color: #059669;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  animation: mpPulseEmerald 2.4s infinite;
}

.mp-flow-node.is-warn .mp-flow-orb {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #ffffff;
  animation: mpPulseWarn 2.1s infinite;
}

.mp-flow-badge {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 15px;
  height: 15px;
  padding: 0 3.5px;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mp-flow-node.is-clear .mp-flow-badge {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.mp-flow-node.is-active .mp-flow-badge {
  background: #047857;
  color: #ffffff;
}

.mp-flow-node.is-warn .mp-flow-badge {
  background: #dc2626;
  color: #ffffff;
}

.mp-flow-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--slate-700);
  line-height: 1.2;
  white-space: nowrap;
}

.mp-flow-node.is-warn .mp-flow-title {
  color: #b45309;
}

.mp-flow-node.is-active .mp-flow-title {
  color: #047857;
}

.mp-flow-step {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: 0.04em;
  line-height: 1;
}

.mp-flow-spotlight {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  text-align: left;
}

.mp-flow-spotlight.is-warn {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
}

.mp-flow-spotlight.is-active {
  background: linear-gradient(90deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
}

.mp-flow-spotlight.is-clear {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  justify-content: flex-start;
}

.mp-spot-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.mp-spot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mp-flow-spotlight.is-warn .mp-spot-dot {
  background: #f59e0b;
  animation: mpPulseWarn 2s infinite;
}

.mp-flow-spotlight.is-active .mp-spot-dot {
  background: #059669;
  animation: mpPulseEmerald 2s infinite;
}

.mp-spot-clear-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mp-spot-text {
  min-width: 0;
}

.mp-spot-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-flow-spotlight.is-warn .mp-spot-title { color: #92400e; }
.mp-flow-spotlight.is-active .mp-spot-title,
.mp-flow-spotlight.is-clear .mp-spot-title { color: #065f46; }

.mp-spot-desc {
  font-size: 10.5px;
  color: var(--slate-600);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-spot-cta {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
  color: #ffffff;
}

.mp-flow-track.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mp-flow-track.cols-4 .mp-flow-line {
  left: 14%;
  right: 14%;
}

.mp-flow-sub {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--slate-500);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mp-flow-node.is-pending .mp-flow-orb {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #94a3b8;
}

.mp-flow-node.is-pending .mp-flow-badge {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}

.mp-flow-node.is-pending .mp-flow-title {
  color: var(--slate-500);
}

.mp-flow-spotlight.is-warn .mp-spot-cta { background: #d97706; }
.mp-flow-spotlight.is-active .mp-spot-cta { background: #059669; }

/* ==================== 金刚区 4 图标快捷导航 ==================== */
.mp-kingkong {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 12px 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
}

.kk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-700);
}

.kk-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.kk-icon.emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.kk-icon.blue {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

.kk-icon.amber {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
}

.kk-icon.purple {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.22);
}

/* ==================== 一级底部 TabBar & 二级底部固定操作栏 ==================== */
.wx-tabbar {
  height: 56px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex-shrink: 0;
}

.wx-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--slate-400);
  font-size: 10.5px;
  font-weight: 600;
  position: relative;
}

.wx-tab-item.active {
  color: #059669;
  font-weight: 700;
}

.wx-tab-badge {
  position: absolute;
  top: 4px;
  right: 24%;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red-600);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 二级详情页底部固定操作栏（Sticky Action Bar） */
.wx-actionbar {
  min-height: 58px;
  padding: 8px 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.wx-ab-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.wx-ab-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px 6px;
  color: var(--slate-600);
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.wx-ab-icon-btn:hover {
  color: #10b981;
}

.wx-ab-status {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wx-ab-status-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-ab-status-sub {
  font-size: 10px;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wx-ab-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ==================== 通用卡片与排版组件 ==================== */
.mp-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 13px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
}

.mp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.mp-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mp-card-extra {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-500);
}

/* 徽章与状态标签 */
.mp-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.mp-tag.green {
  background: #d1fae5;
  color: #047857;
}

.mp-tag.amber {
  background: #fef3c7;
  color: #b45309;
}

.mp-tag.blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.mp-tag.red {
  background: #fee2e2;
  color: #dc2626;
}

.mp-tag.slate {
  background: #f1f5f9;
  color: var(--slate-600);
}

/* ==================== 统计宫格 ==================== */
.mp-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mp-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 11px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}

.mp-stat-box.has-val {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border-color: #6ee7b7;
  border-left: 3.5px solid #10b981;
}

.mp-stat-box.has-val.warn-box {
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
  border-color: #fcd34d;
  border-left: 3.5px solid #f59e0b;
}

.mp-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate-300);
}

.mp-stat-box.has-val .mp-stat-dot.green {
  background: #10b981;
}

.mp-stat-box.has-val .mp-stat-dot.amber {
  background: #f59e0b;
}

.mp-stat-box.has-val .mp-stat-dot.blue {
  background: #3b82f6;
}

.mp-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-500);
}

.mp-stat-value {
  font-size: 19px;
  font-weight: 800;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.mp-stat-value.zero-val {
  color: var(--slate-300);
}

.mp-stat-value.highlight {
  color: #f59e0b;
}

.mp-stat-value.brand {
  color: #10b981;
}

/* ==================== 车次卡片 & 单车 4 步子流程轨 ==================== */
.mp-truck-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 8px 0;
  padding: 6px;
  background: #f8fafc;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
}

.mp-tf-step {
  font-size: 10px;
  font-weight: 600;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 4px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #edf2f7;
}

.mp-tf-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--slate-400);
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mp-tf-step.done {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.mp-tf-step.done .mp-tf-dot {
  background: #10b981;
  color: #ffffff;
}

.mp-tf-step.active {
  color: #047857;
  background: #ffffff;
  border-color: #6ee7b7;
  font-weight: 800;
}

.mp-tf-step.active .mp-tf-dot {
  background: #059669;
  color: #ffffff;
}

.mp-tf-step.warn {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
  font-weight: 800;
}

.mp-tf-step.warn .mp-tf-dot {
  background: #f59e0b;
  color: #ffffff;
}

.mp-truck-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 6px 0;
}

.mp-tm-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mp-tm-label {
  font-size: 10.5px;
  color: var(--slate-500);
}

.mp-tm-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
}

/* ==================== 垂直审计时间轴（Vertical Audit Timeline） ==================== */
.mp-timeline {
  position: relative;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.mp-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  background: #cbd5e1;
}

.mp-tl-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-tl-dot {
  position: absolute;
  left: -17px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #94a3b8;
}

.mp-tl-item:first-child .mp-tl-dot {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.mp-tl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mp-tl-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-900);
}

.mp-tl-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--slate-400);
}

.mp-tl-actor {
  font-size: 11.5px;
  color: var(--slate-500);
}

/* ==================== 按钮体系 ==================== */
.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.mp-btn.block {
  width: 100%;
}

.mp-btn.sm {
  padding: 5px 10px;
  font-size: 11.5px;
  border-radius: 7px;
}

.mp-btn.primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
}

.mp-btn.primary:hover {
  opacity: 0.94;
}

.mp-btn.amber {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
}

.mp-btn.blue-soft {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
}

.mp-btn.outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--slate-700);
}

.mp-btn.danger-outline {
  background: #ffffff;
  border: 1px solid #fecdd3;
  color: var(--red-600);
}

/* ==================== 待办列表与单据卡片 ==================== */
.mp-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-task-item {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid #10b981;
  border-radius: 9px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp-task-item:hover {
  background: #ffffff;
  border-color: #6ee7b7;
}

.mp-task-item.warn {
  background: #fffdf7;
  border-color: #fde68a;
  border-left: 3.5px solid #f59e0b;
}

.mp-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mp-task-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
}

.mp-task-desc {
  font-size: 11.5px;
  color: var(--slate-600);
}

.mp-task-meta {
  font-size: 10.5px;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  font-family: var(--font-mono);
}

/* 车次重量对比条 */
.mp-weight-bar-wrap {
  margin: 5px 0 3px;
  background: #e2e8f0;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
}

.mp-weight-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #10b981;
}

.mp-weight-bar-fill.warn {
  background: #f59e0b;
}

/* ==================== 筛选胶囊栏与搜索框 ==================== */
.mp-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mp-search-row {
  display: flex;
  gap: 6px;
}

.mp-input, .mp-select, .mp-textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--slate-900);
  font-size: 13px;
}

.mp-input:focus, .mp-select:focus, .mp-textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16);
}

.mp-pills {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.mp-pills::-webkit-scrollbar {
  display: none;
}

.mp-pill {
  padding: 4.5px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--slate-600);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.mp-pill.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

/* 键值对列表 */
.mp-kv-list {
  display: flex;
  flex-direction: column;
  gap: 5.5px;
  font-size: 12px;
}

.mp-kv-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.mp-kv-key {
  color: var(--slate-500);
  flex-shrink: 0;
}

.mp-kv-val {
  color: var(--slate-900);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.mp-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 9px 0;
}

/* 页签切换 */
.mp-subtabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #e2e8f0;
  padding: 3px;
  border-radius: 9px;
  gap: 2px;
}

.mp-subtab {
  padding: 6.5px 2px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-600);
  text-align: center;
  white-space: nowrap;
}

.mp-subtab.active {
  background: #ffffff;
  color: #059669;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* 底部抽屉表单弹窗 */
.wx-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.wx-sheet {
  background: #ffffff;
  border-radius: 18px 18px 0 0;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.14);
}

.wx-sheet-header {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wx-sheet-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
}

.wx-sheet-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wx-sheet-body {
  padding: 14px 16px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.mp-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp-form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
}

/* Toast 提示 */
.wx-toast {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  z-index: 90;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  max-width: 86%;
  text-align: center;
}

.wx-toast.error {
  background: var(--red-600);
}

.wx-toast.success {
  background: #10b981;
}

.mp-empty {
  padding: 26px 16px;
  text-align: center;
  color: var(--slate-400);
  font-size: 12px;
}

/* ==================== 二期新增：四流合一微卡片 · 货源大厅 · 消息铃铛 ==================== */
.mp-tag.purple {
  background: #f3e8ff;
  color: #7e22ce;
}

.mp-notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.mp-notif-btn:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.wx-compact-bar .mp-notif-btn {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.mp-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

.mp-party-banner {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #059669;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 11.5px;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mp-party-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: #047857;
}

.mp-weigh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mp-weigh-calc-tip {
  font-size: 11px;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 7px;
  padding: 6px 9px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mp-exec-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: #ffffff;
}

.mp-exec-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-exec-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.mp-exec-val {
  font-size: 15.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.mp-notif-dot {
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mp-four-flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 9px;
}

.mp-ff-cell {
  text-align: left;
  padding: 7px 9px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-ff-cell.active {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.mp-ff-cell.done {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.mp-ff-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
}

.mp-ff-cell.done .mp-ff-title {
  color: #047857;
}

.mp-ff-cell.active .mp-ff-title {
  color: #1d4ed8;
}

.mp-ff-val {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
}

.mp-supply-price {
  font-size: 16px;
  font-weight: 800;
  color: #059669;
  font-variant-numeric: tabular-nums;
}

.mp-plate-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

/* ==================== 三端统一视觉样式补充 ==================== */
.sim-group-dot.admin {
  background: #047857;
}

.role-avatar.admin {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.role-pill-btn {
  padding: 4px 6.5px;
  white-space: nowrap;
}

.mp-admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.mp-admin-kpi-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-admin-kpi-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.mp-admin-kpi-val {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.mp-admin-kpi-sub {
  font-size: 10.5px;
  color: #047857;
  font-weight: 600;
}

.mp-admin-seg {
  display: flex;
  gap: 6px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.mp-admin-seg-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-align: center;
  cursor: pointer;
  transition: all 180ms ease;
}

.mp-admin-seg-btn.active {
  background: #ffffff;
  color: #047857;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

/* ==================== 正式发布版：独立登录页与退出按钮 ==================== */
.mp-login-wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px 14px 20px;
  gap: 16px;
}

.mp-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 0 4px;
}

.mp-login-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-login-title {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.mp-login-sub {
  font-size: 12px;
  color: #64748b;
}

.mp-login-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-login-role-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
}

.mp-login-role-tab {
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 180ms ease;
}

.mp-login-role-tab.active {
  background: #ffffff;
  color: #047857;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.mp-login-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mp-login-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}

.mp-input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mp-input-icon-wrap svg {
  position: absolute;
  left: 11px;
  color: #94a3b8;
  pointer-events: none;
}

.mp-input-icon-wrap .mp-input {
  padding-left: 34px;
  width: 100%;
}

.mp-demo-quick {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-demo-quick-title {
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

.mp-demo-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mp-demo-chip {
  padding: 7px 6px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  cursor: pointer;
  transition: all 160ms ease;
}

.mp-demo-chip:hover {
  border-color: #10b981;
  color: #047857;
  background: #ecfdf5;
}

.mp-btn.danger-outline {
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.mp-btn.danger-outline:hover {
  background: #fef2f2;
}

.mp-kv-key-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--slate-500);
}

/* ==================== 户外强光大字极简模式（司磅员 / 大车司机友好） ==================== */
.mp-large-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.mp-large-toggle-btn.is-on {
  background: #fef08a;
  color: #0f172a;
  border-color: #facc15;
}

.mp-market-strip {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: #ffffff;
  border-radius: 13px;
  padding: 11px 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.16);
}

.mp-market-strip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mp-market-avg {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: #fef08a;
}

.mp-market-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mp-market-chip {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ecfdf5;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 600;
}

.mp-moisture-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 6px 0 8px;
}

.mp-moisture-chip {
  padding: 6px 4px;
  border-radius: 7px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
}

.mp-moisture-chip.active {
  background: #059669;
  border-color: #047857;
  color: #ffffff;
}

body.mp-large-mode .mp-device {
  font-size: 16px;
}

body.mp-large-mode .mp-card-title,
body.mp-large-mode .mp-task-title {
  font-size: 16.5px !important;
  color: #020617 !important;
}

body.mp-large-mode .mp-kv-row,
body.mp-large-mode .mp-task-desc,
body.mp-large-mode .mp-form-label,
body.mp-large-mode .mp-label {
  font-size: 14.5px !important;
  color: #0f172a !important;
}

body.mp-large-mode .mp-btn {
  min-height: 46px !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  padding: 10px 14px !important;
}

body.mp-large-mode .mp-btn.sm {
  min-height: 40px !important;
  font-size: 14px !important;
}

body.mp-large-mode .mp-input,
body.mp-large-mode .mp-select,
body.mp-large-mode .mp-textarea {
  font-size: 16px !important;
  min-height: 44px !important;
  border-width: 1.5px !important;
  border-color: #64748b !important;
  color: #020617 !important;
}

body.mp-large-mode .wx-tab-item span {
  font-size: 13px !important;
  font-weight: 800 !important;
}
