/* ============ 手机版 ============ */
body.m-body { background: #eef2ef; font-size: 14px; }
.m-app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #eef2ef; display: flex; flex-direction: column; position: relative; }

/* 顶栏 */
.m-header {
  background: linear-gradient(135deg, #2f6f4f, #3e8a63); color: #fff;
  padding: 16px 16px 20px; border-radius: 0 0 18px 18px; flex-shrink: 0;
}
.m-header .mh-row { display: flex; justify-content: space-between; align-items: center; }
.m-header .mh-title { font-size: 17px; font-weight: bold; letter-spacing: 1px; }
.m-header .mh-user { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.m-header .mh-logout { background: rgba(255,255,255,.18); border: none; color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 12px; }
.m-header .mh-date { font-size: 11px; opacity: .75; margin-top: 4px; }

/* 内容 */
.m-content { flex: 1; padding: 14px 12px 76px; }

/* 统计卡 */
.m-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-stat { background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.m-stat .ms-label { font-size: 12px; color: var(--text-light); }
.m-stat .ms-value { font-size: 22px; font-weight: bold; margin-top: 4px; }

/* 列表卡片 */
.m-card {
  background: #fff; border-radius: 12px; padding: 13px 14px; margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.m-card .mc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.m-card .mc-cust { font-weight: bold; color: var(--accent); font-size: 15px; }
.m-card .mc-amt { font-weight: bold; color: var(--primary); font-size: 16px; }
.m-card .mc-meta { font-size: 12px; color: var(--text-light); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.m-card .mc-detail { font-size: 13px; color: var(--text); line-height: 1.6; background: #f6faf7; border-radius: 8px; padding: 8px 10px; }
.m-card .mc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; }
.m-card .mc-staff { font-size: 12px; color: var(--text-light); }
.m-card .mc-btns { display: flex; gap: 8px; }

/* 搜索条 */
.m-search { display: flex; gap: 8px; margin-bottom: 12px; }
.m-search input, .m-search select {
  flex: 1; border: none; border-radius: 10px; padding: 9px 12px; background: #fff; font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* 底部导航 */
.m-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
  background: #fff; display: flex; border-top: 1px solid var(--border); z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.m-tab { flex: 1; text-align: center; padding: 8px 0 7px; color: #8a9a91; font-size: 11px; border: none; background: none; }
.m-tab .tab-ico { font-size: 20px; display: block; margin-bottom: 1px; }
.m-tab.active { color: var(--primary); font-weight: bold; }

/* 悬浮新增 */
.m-fab {
  position: fixed; right: calc(50% - 240px + 16px); bottom: 78px; width: 52px; height: 52px;
  border-radius: 50%; border: none; background: var(--primary); color: #fff; font-size: 26px;
  box-shadow: 0 6px 18px rgba(47,111,79,.45); z-index: 110;
}
@media (max-width: 520px) { .m-fab { right: 16px; } }

/* 登录 */
.m-login {
  min-height: 100vh; background: linear-gradient(150deg, #24573f, #3e8a63);
  display: flex; flex-direction: column; justify-content: center; padding: 40px 30px;
}
.m-login .ml-box { background: #fff; border-radius: 16px; padding: 32px 26px; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.m-login h2 { text-align: center; font-size: 20px; color: #24443a; }
.m-login .ml-sub { text-align: center; font-size: 11px; color: var(--text-light); margin: 5px 0 24px; letter-spacing: 1px; }
.m-login .login-error { color: var(--danger); font-size: 12px; text-align: center; min-height: 18px; }
.m-login .btn-primary { width: 100%; justify-content: center; padding: 11px; font-size: 15px; }

/* 弹窗（手机版复用 modal 结构） */
.m-modal .modal { width: 92vw; }

/* 客户卡片 */
.m-cust-card { display: flex; justify-content: space-between; align-items: center; }
.m-cust-card .cc-name { font-weight: bold; font-size: 15px; }
.m-cust-card .cc-region { font-size: 12px; color: var(--primary); background: var(--primary-light); border-radius: 8px; padding: 1px 8px; margin-left: 8px; }
.m-cust-card .cc-info { font-size: 12px; color: var(--text-light); margin-top: 5px; }
.m-cust-card .cc-recv { text-align: right; font-size: 12px; color: var(--text-light); }
.m-cust-card .cc-recv b { display: block; font-size: 15px; color: var(--accent); }
