:root {
  --primary: #2f7dff;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1f2733;
  --muted: #8a94a6;
  --ok: #1aab5b;
  --warn: #f5a623;
  --bad: #e8504e;
  --line: #eef1f6;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.topbar {
  height: 52px; background: var(--primary); color: #fff; display: flex;
  align-items: center; justify-content: space-between; padding: 0 16px; font-weight: 600; position: sticky; top: 0; z-index: 5;
}
.user-box { font-size: 13px; opacity: .92; font-weight: 400; }
.view { flex: 1; padding: 14px; padding-bottom: 80px; overflow-y: auto; }
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
  height: 58px; background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 5;
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; gap: 2px; }
.tab span { font-size: 20px; }
.tab.active { color: var(--primary); }

.card { background: var(--card); border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(20,30,50,.05); }
.card h3 { margin: 0 0 6px; font-size: 15px; }
.card .meta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.card .row { display: flex; justify-content: space-between; align-items: center; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge.pending { background: #fff4e0; color: var(--warn); }
.badge.approved { background: #e6f8ee; color: var(--ok); }
.badge.rejected { background: #fdeaea; color: var(--bad); }

.btn { display: inline-block; border: none; border-radius: 8px; padding: 9px 14px; font-size: 14px; background: var(--primary); color: #fff; cursor: pointer; }
.btn.block { width: 100%; }
.btn.ghost { background: #eef3ff; color: var(--primary); }
.btn.ok { background: var(--ok); }
.btn.bad { background: var(--bad); }
.btn:active { opacity: .85; }
.btn-row { display: flex; gap: 8px; margin-top: 10px; }
.btn-row .btn { flex: 1; }

input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px;
  font-size: 14px; margin: 6px 0; background: #fbfcfe; color: var(--text); font-family: inherit;
}
label.fld { font-size: 13px; color: var(--muted); display: block; margin-top: 6px; }

.section-title { font-size: 13px; color: var(--muted); margin: 6px 2px; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }

.login-mask { position: fixed; inset: 0; background: var(--primary); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 20; }
.login-mask h1 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.login-mask p { color: rgba(255,255,255,.85); margin-bottom: 24px; font-size: 13px; }
.login-user { background: #fff; border-radius: 10px; padding: 12px 18px; margin: 6px; width: 240px; text-align: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.login-user b { display: block; font-size: 15px; }
.login-user small { color: var(--muted); }
.login-wecom { margin-top: 18px; background: #fff; color: var(--primary); border-radius: 24px; padding: 10px 26px; font-weight: 600; cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: rgba(20,30,50,.9); color: #fff; padding: 9px 16px; border-radius: 20px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 30; max-width: 80%; text-align: center; }
.toast.show { opacity: 1; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--card); border-radius: 12px; padding: 16px; text-align: center; box-shadow: 0 1px 4px rgba(20,30,50,.05); }
.stat b { font-size: 24px; color: var(--primary); display: block; }
.stat small { color: var(--muted); }
