* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.6 "Microsoft YaHei", Arial, sans-serif; background: #f3f5f9; color: #333; }
a { color: #2f6fed; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { display: flex; align-items: center; gap: 24px; background: #1f2a44; color: #fff; padding: 0 24px; height: 52px; flex-wrap: wrap; }
.topbar .brand { font-size: 18px; font-weight: bold; }
.topbar nav { flex: 1; display: flex; gap: 4px; }
.topbar nav a { color: #cfd6e6; padding: 14px 14px; }
.topbar nav a.active, .topbar nav a:hover { background: #2f6fed; color: #fff; text-decoration: none; }
.topbar .me { font-size: 13px; color: #cfd6e6; }
.topbar .me a { color: #fff; margin-left: 10px; }
.container { max-width: 1280px; margin: 20px auto; padding: 0 16px; }
.page-title { margin: 0 0 16px; font-size: 20px; }
.card { background: #fff; border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.card h3 { margin: 0 0 12px; font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: 8px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat .n { font-size: 28px; font-weight: bold; color: #2f6fed; }
.stat .t { color: #888; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 8px 10px; border-bottom: 1px solid #eef0f4; text-align: left; vertical-align: middle; }
th { background: #f7f9fc; color: #555; white-space: nowrap; }
tr:hover td { background: #fafcff; }
input[type=text], input[type=password], input[type=number], select, textarea {
    padding: 6px 10px; border: 1px solid #cdd3df; border-radius: 4px; font: inherit; background: #fff;
}
input[type=number] { width: 90px; }
textarea { width: 100%; font-family: Consolas, monospace; }
button, .btn { display: inline-block; padding: 6px 14px; border: 0; border-radius: 4px; background: #2f6fed; color: #fff; cursor: pointer; font: inherit; }
button:hover, .btn:hover { background: #1f5bd6; text-decoration: none; }
button.gray { background: #7b8498; }
button.red { background: #e54d42; }
button.green { background: #2fa36b; }
button.sm { padding: 2px 10px; font-size: 12px; }
.inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.alert { padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; }
.alert.ok { background: #e6f7ee; color: #1b7f4b; border: 1px solid #b7e4cb; }
.alert.err { background: #fdecea; color: #b3261e; border: 1px solid #f5c2be; }
.tag { display: inline-block; padding: 0 8px; border-radius: 10px; font-size: 12px; }
.tag.green { background: #e6f7ee; color: #1b7f4b; }
.tag.red { background: #fdecea; color: #b3261e; }
.tag.blue { background: #e8f0fe; color: #2f6fed; }
.tag.gray { background: #eceff4; color: #666; }
.pager { margin: 14px 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pager a { padding: 2px 10px; background: #fff; border: 1px solid #d5dae5; border-radius: 4px; }
.pager a.active { background: #2f6fed; color: #fff; border-color: #2f6fed; }
.pager span { color: #888; margin-left: 8px; }
.muted { color: #999; }
.mono { font-family: Consolas, monospace; word-break: break-all; }
.login-box { max-width: 380px; margin: 100px auto; }
.login-box input { width: 100%; margin-bottom: 12px; padding: 9px 10px; }
.login-box button { width: 100%; padding: 10px; }
