/* ============ 手机版样式（居中限宽，模拟 App） ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #e5e7eb; color: #333; font-size: 14px;
}
#mContent {
  max-width: 480px; margin: 0 auto; background: #f4f6f8;
  min-height: 100vh; padding-bottom: 76px;
}

.m-header {
  max-width: 480px; margin: 0 auto;
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: #fff; padding: 16px; display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 10;
}
.m-title { font-size: 17px; font-weight: 700; }
.m-head-right { display: flex; align-items: center; gap: 8px; }
.m-switch { color: rgba(255,255,255,.85); font-size: 12px; text-decoration: none; border: 1px solid rgba(255,255,255,.4); padding: 4px 10px; border-radius: 999px; }
.m-logout {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
}

.m-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: #fff; z-index: 10;
  display: flex; border-top: 1px solid #e5e9ef;
}
.m-tabbar a {
  flex: 1; text-align: center; padding: 8px 0 6px; font-size: 12px;
  color: #6b7280; text-decoration: none; cursor: pointer;
}
.m-tabbar a .ic { display: block; font-size: 19px; line-height: 1.3; }
.m-tabbar a.active { color: #2563eb; font-weight: 600; }

.m-body { padding: 14px; }

/* ---------- 首页 ---------- */
.m-hero {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border-radius: 14px; color: #fff; padding: 18px; margin-bottom: 14px;
}
.m-hero .date { font-size: 12px; opacity: .85; }
.m-hero .hello { font-size: 19px; font-weight: 700; margin-top: 4px; }
.m-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.m-stat {
  background: #fff; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.m-stat .t { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.m-stat .v { font-size: 21px; font-weight: 700; }
.m-stat .v.blue { color: #2563eb; }
.m-stat .v.orange { color: #ea580c; }
.m-stat .v.red { color: #dc2626; }

.m-quick { display: flex; gap: 10px; margin-bottom: 16px; }
.m-quick button {
  flex: 1; border: none; border-radius: 12px; padding: 13px 0;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.m-quick .q1 { background: #2563eb; color: #fff; }
.m-quick .q2 { background: #fff; color: #2563eb; box-shadow: 0 1px 4px rgba(0,0,0,.05); }

.m-card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.m-card h3 { font-size: 14px; margin-bottom: 12px; color: #1f2937; }

/* ---------- 工单卡片 ---------- */
.o-card {
  background: #fff; border-radius: 12px; padding: 14px;
  margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.o-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.o-card .no { font-size: 13px; color: #6b7280; }
.o-card .plate { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.o-card .fault { font-size: 13px; color: #4b5563; margin-bottom: 8px; }
.o-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #6b7280; }
.o-card .total { color: #dc2626; font-weight: 700; font-size: 15px; }
.o-card .ops { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #eef1f5; }

/* ---------- 状态筛选 chips ---------- */
.chips { display: flex; gap: 8px; margin-bottom: 12px; }
.chips button {
  border: none; background: #fff; color: #4b5563; border-radius: 999px;
  padding: 7px 16px; font-size: 13px; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.chips button.on { background: #2563eb; color: #fff; }

/* ---------- 库存 ---------- */
.p-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 2px; border-bottom: 1px solid #f0f2f5;
}
.p-row:last-child { border-bottom: none; }
.p-row .name { font-size: 14px; font-weight: 600; }
.p-row .sub { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.p-row .stock { font-size: 15px; font-weight: 700; color: #16a34a; }
.p-row .stock.low { color: #dc2626; }
