/* ============ 押金管家 管理后台 样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #F0F2F5; color: #1A1A1A; font-size: 14px;
}

/* 登录页 */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #07C160 0%, #05A24E 100%); }
.login-card { background: #fff; border-radius: 16px; padding: 40px; width: 380px; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.login-logo { font-size: 20px; font-weight: 800; text-align: center; }
.login-sub { font-size: 13px; color: #888; text-align: center; margin: 8px 0 24px; }
.login-form input { width: 100%; height: 44px; border: 1px solid #E5E7EB; border-radius: 10px; padding: 0 14px; font-size: 14px; margin-bottom: 14px; outline: none; }
.login-form input:focus { border-color: #07C160; }
.login-err { color: #FA5151; font-size: 12px; margin-top: 10px; text-align: center; min-height: 18px; }
.login-tip { font-size: 11px; color: #BBB; text-align: center; margin-top: 16px; }

/* 顶栏 */
.a-top { background: #fff; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid #E5E7EB; position: sticky; top: 0; z-index: 10; }
.a-logo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #111; }
.a-user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #555; }
.a-av { width: 30px; height: 30px; border-radius: 8px; background: #07C160; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; cursor: pointer; }

/* 主体 */
.a-body { display: flex; min-height: calc(100vh - 56px); }
.a-side { width: 180px; background: #fff; border-right: 1px solid #E5E7EB; padding: 14px 0; flex-shrink: 0; }
.a-menu { padding: 11px 20px; font-size: 13.5px; color: #555; cursor: pointer; }
.a-menu:hover { background: #F7F9F8; }
.a-menu.on { background: rgba(7,193,96,.08); color: #07C160; font-weight: 600; border-right: 3px solid #07C160; }
.a-main { flex: 1; padding: 20px; }
.a-panel { display: none; }
.a-panel.active { display: block; }

/* 卡片与表格 */
.a-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.a-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.a-stat { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.a-stat .av { font-size: 22px; font-weight: 700; }
.a-stat .ak { font-size: 12px; color: #888; margin-top: 4px; }
.a-card { background: #fff; border-radius: 12px; margin-top: 14px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.a-card-h { font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.a-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.a-tbl th { text-align: left; color: #999; font-weight: 500; padding: 8px 10px; border-bottom: 1px solid #F0F0F0; }
.a-tbl td { padding: 10px; border-bottom: 1px solid #F5F5F5; }
.op { color: #07C160; cursor: pointer; font-weight: 600; }
.op.danger { color: #FA5151; }

/* 组件 */
.a-btn { background: #07C160; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.a-btn:hover { background: #06AD56; }
.a-btn-ghost { background: #fff; color: #555; border: 1px solid #E5E7EB; }
.a-chip { padding: 4px 12px; border-radius: 14px; background: #F5F5F5; font-size: 12px; cursor: pointer; }
.a-chip.on { background: #07C160; color: #fff; }
.a-search { width: 160px; height: 28px; border: 1px solid #E5E7EB; border-radius: 7px; padding: 0 10px; font-size: 12px; outline: none; }
.a-alert { display: flex; align-items: center; gap: 8px; background: #FFF8E8; border: 1px solid #FFE3A3; border-radius: 10px; padding: 11px 14px; font-size: 12.5px; color: #8A6A1F; margin-bottom: 12px; cursor: pointer; }
.a-note { font-size: 12px; color: #999; margin: 10px 2px; line-height: 1.8; }
.a-form .f { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.a-form label { width: 88px; font-size: 13px; color: #666; flex-shrink: 0; }
.a-form input { flex: 1; height: 34px; border: 1px solid #E5E7EB; border-radius: 8px; padding: 0 12px; font-size: 13px; outline: none; }
.a-form input:focus { border-color: #07C160; }
.a-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #F5F5F5; font-size: 13px; }
.a-row:last-child { border: none; }
.a-row .t { color: #555; }
.a-row .s { font-size: 12px; color: #999; margin-top: 2px; }
.a-hist { font-size: 12.5px; color: #666; padding: 10px 0; border-bottom: 1px solid #F5F5F5; display: flex; justify-content: space-between; gap: 10px; }
.a-hist:last-child { border: none; }
.a-trend { display: flex; align-items: flex-end; gap: 12px; height: 130px; padding: 14px 4px 0; }
.a-trend .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.a-trend .cols { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.a-trend .cols i { width: 12px; border-radius: 4px 4px 0 0; }
.a-trend .lb { font-size: 11px; color: #999; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.tag-green { background: rgba(7,193,96,.1); color: #07C160; }
.tag-orange { background: rgba(255,159,10,.12); color: #D47900; }
.tag-gray { background: #F0F0F0; color: #8A8A8A; }
.empty { padding: 40px 0; text-align: center; color: #BDBDBD; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: rgba(0,0,0,.75); color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 10px; opacity: 0; transition: opacity .25s; z-index: 99; pointer-events: none; white-space: nowrap; }

/* 用户管理搜索 */
.u-search { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.u-search input {
  flex: 1; max-width: 320px; padding: 8px 12px; border: 1px solid #e5e5e5;
  border-radius: 8px; font-size: 13px; outline: none;
}
.u-search input:focus { border-color: #07c160; }
.u-search-clear { color: #999; font-size: 13px; cursor: pointer; }
.u-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  vertical-align: middle; margin-right: 6px; object-fit: cover;
}
