/* 极简、高密度布局 */
:root{--bg:#f7f7f8;--fg:#111;--muted:#666;--card:#fff;--border:#e5e7eb;--primary:#0d6efd;--danger:#d92d20}
*{box-sizing:border-box}
body{margin:0;padding:24px;background:var(--bg);color:var(--fg);font:14px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Arial}
a{color:var(--primary);text-decoration:none}
.container{max-width:none;margin:0 auto;width:100%}

/* 顶部条 */
.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.topbar .title{font-size:18px;font-weight:600}
.topbar .actions{display:flex;gap:8px}

/* 表单与控件 */
.controls{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
input[type=text],select{height:34px;padding:0 10px;border:1px solid var(--border);border-radius:6px;background:#fff;min-width:160px}
input[type=number]{height:34px;padding:0 10px;border:1px solid var(--border);border-radius:6px;background:#fff;width:100px}
button,.btn{height:34px;padding:0 12px;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--fg);cursor:pointer}
.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}
.btn.ghost{background:transparent}
.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}

/* 表格 */
.table-wrap{background:var(--card);border:1px solid var(--border);border-radius:8px;overflow:auto}
table{width:100%;border-collapse:collapse}
thead th{position:sticky;top:0;background:#fafafa;border-bottom:1px solid var(--border);text-align:left;font-weight:600;padding:8px 10px;white-space:nowrap}
tbody td{padding:8px 10px;border-top:1px solid var(--border);vertical-align:top}
tbody tr:hover{background:#fbfbfb}
.nowrap{white-space:nowrap}
.muted{color:var(--muted)}

/* 登录 */
.auth-container{max-width:360px;margin:80px auto;padding:24px;background:var(--card);border:1px solid var(--border);border-radius:8px}
.auth-form{display:flex;gap:8px}
.auth-form input[type=password]{flex:1;height:36px;padding:0 10px;border:1px solid var(--border);border-radius:6px}
.error{color:#b42318;margin-top:8px}

/* 分页 */
.pagination{display:flex;gap:6px;align-items:center;justify-content:flex-end;padding:8px}

/* 状态色弱化，仅用标签 */
.tag{display:inline-block;padding:2px 6px;border-radius:4px;border:1px solid var(--border);background:#fafafa}

/* 状态按钮（小尺寸胶囊） */
/* 使用 tag + status-pill 保留外圈（边框）样式 */
.status-pill{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;font-size:12px;line-height:1;background:#fff}
.status-success{border-color:#86efac;color:#15803d}
.status-danger{border-color:#fecaca;color:#b42318}
.status-warning{border-color:#fde68a;color:#b54708}
.status-primary{border-color:#bfdbfe;color:#0b63d1}
.status-accent{border-color:#ddd6fe;color:#4f46e5}
.status-muted{border-color:#e5e7eb;color:#667085}


