/* =========================================
   宴知己智能售酒 · 服务商手机端样式（深绿+金）
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --green: #1B6B45;
  --green-d: #134D31;
  --green-l: #E8F1EC;
  --gold: #C9A35C;
  --gold-l: #F5EBD8;
  --bg: #F4F3EE;
  --card: #FFFFFF;
  --text: #1A1B1C;
  --text2: #6B7280;
  --red: #D9534F;
  --radius: 12px;
}
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 64px;
}

/* ---- 顶部品牌栏 ---- */
.m-header {
  background: linear-gradient(135deg, var(--green-d), var(--green));
  color: #fff;
  padding: 16px 16px 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.m-header .brand { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.m-header .sub { font-size: 12px; opacity: .85; margin-top: 2px; }
.m-header .co { font-size: 10px; opacity: .6; margin-top: 2px; }
.m-header .back { font-size: 22px; line-height: 1; cursor: pointer; margin-right: 8px; display: inline-block; vertical-align: -2px; }

/* ---- 账户卡片 ---- */
.acc-card {
  margin: 14px 14px 0;
  background: linear-gradient(135deg, var(--green-d), var(--green));
  border-radius: var(--radius);
  padding: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(19,77,49,.25);
}
.acc-card::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(201,163,92,.25);
}
.acc-card .role { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.acc-card .role .vip {
  background: linear-gradient(135deg, var(--gold), #E3C98A);
  color: #5a3e12;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9px;
  letter-spacing: 1px;
}
.acc-card .company { font-size: 10px; opacity: .7; margin-top: 3px; }
.acc-row { display: flex; margin-top: 14px; position: relative; z-index: 1; }
.acc-row .item { flex: 1; }
.acc-row .item .k { font-size: 11px; opacity: .75; }
.acc-row .item .v { font-size: 19px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.acc-row .item .v small { font-size: 11px; font-weight: 400; opacity: .8; }

/* ---- 九宫格 ---- */
.grid { display: flex; flex-wrap: wrap; margin: 12px 14px 0; background: var(--card); border-radius: var(--radius); padding: 6px 0; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.grid .cell {
  flex: 0 0 33.333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 13px 4px 11px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}
.grid .cell:active { background: var(--green-l); }
.grid .cell .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--green-l);
}
.grid .cell:nth-child(3n+2) .ico { background: var(--gold-l); }
.grid .cell:nth-child(3n) .ico { background: #EDF3F7; }
.grid .cell .nm { font-size: 12px; margin-top: 7px; color: #333; }
.grid .cell .bd {
  margin-top: 2px; font-size: 10px; color: var(--red); font-weight: 600;
  background: #FDEBEB; border-radius: 8px; padding: 0 7px; line-height: 16px;
}

/* ---- 底部导航 ---- */
.m-tabbar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
}
.m-tabbar a {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text2);
  font-size: 10px;
  padding: 3px 0;
}
.m-tabbar a .ti { font-size: 20px; }
.m-tabbar a.on { color: var(--green); font-weight: 600; }

/* ---- 通用块 ---- */
.card { background: var(--card); border-radius: var(--radius); margin: 12px 14px 0; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.card .t { font-size: 14px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.card .t .more { font-size: 11px; color: var(--green); font-weight: 400; }
.sec-title { font-size: 13px; font-weight: 600; color: var(--text2); margin: 16px 14px 4px; }

/* 列表行 */
.row {
  display: flex; align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #F2F2F2;
  text-decoration: none; color: var(--text);
}
.row:last-child { border-bottom: none; }
.row .r-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--green-l); display: flex; align-items: center; justify-content: center; font-size: 17px; margin-right: 10px; flex-shrink: 0; }
.row .r-main { flex: 1; min-width: 0; }
.row .r-title { font-size: 14px; font-weight: 500; }
.row .r-sub { font-size: 11px; color: var(--text2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .r-right { font-size: 13px; color: var(--text2); flex-shrink: 0; }
.row .r-right .up { color: var(--red); font-weight: 600; }

/* 按钮 */
.btn {
  display: block; width: 100%;
  padding: 12px;
  border: none; border-radius: 10px;
  background: var(--green); color: #fff;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  text-align: center;
}
.btn:active { opacity: .85; }
.btn.gold { background: linear-gradient(135deg, var(--gold), #E3C98A); color: #5a3e12; }
.btn.ghost { background: var(--green-l); color: var(--green); }
.btn.gray { background: #E5E7EB; color: #374151; }

/* 表单 */
.field { margin-top: 12px; }
.field label { display: block; font-size: 12px; color: var(--text2); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; height: 40px;
  border: 1px solid #D9DEE2; border-radius: 9px;
  padding: 0 12px; font-size: 14px;
  background: #fff; color: var(--text);
  outline: none;
}
.field input:focus { border-color: var(--green); }

/* 标签 */
.pill { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 9px; font-weight: 600; }
.pill.green { background: var(--green-l); color: var(--green); }
.pill.gold { background: var(--gold-l); color: #8a6a1f; }
.pill.red { background: #FDEBEB; color: var(--red); }
.pill.gray { background: #F0F0F0; color: var(--text2); }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { background: var(--green-l); color: var(--green-d); padding: 8px 6px; font-weight: 600; text-align: left; white-space: nowrap; }
.tbl td { padding: 8px 6px; border-bottom: 1px solid #F2F2F2; vertical-align: middle; }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl .empty { text-align: center; color: var(--text2); padding: 24px 0; }

/* 统计条 */
.stat-row { display: flex; gap: 8px; margin: 12px 14px 0; }
.stat-row .st { flex: 1; background: var(--card); border-radius: 10px; padding: 11px 8px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.stat-row .st .k { font-size: 11px; color: var(--text2); }
.stat-row .st .v { font-size: 17px; font-weight: 700; color: var(--green); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* 提示 */
.tip { background: var(--gold-l); color: #8a6a1f; font-size: 12px; border-radius: 9px; padding: 9px 12px; margin: 12px 14px 0; line-height: 1.5; }
.msg-ok { background: #E8F6EC; color: var(--green); }
.msg-err { background: #FDEBEB; color: var(--red); }

/* 空态 */
.empty-box { text-align: center; color: var(--text2); padding: 40px 0; font-size: 13px; }
.empty-box .big { font-size: 38px; margin-bottom: 8px; }
