* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #f5f6f8;
    color: #24292f;
}

.nav {
    background: #24292f;
    color: #fff;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav a { color: #d0d7de; text-decoration: none; margin-left: 16px; }
.nav a:hover { color: #fff; }
.nav .brand { color: #fff; font-weight: 600; margin-left: 0; }
.nav-user { color: #8c959f; margin-left: 16px; font-size: 13px; }

.container {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 16px;
}

h1 { font-size: 22px; }

.flash {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.flash-success { background: #dafbe1; color: #1a7f37; }
.flash-error { background: #ffebe9; color: #cf222e; }

.form {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 20px;
    max-width: 560px;
}
.form-narrow { max-width: 360px; }

.form label {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
}

.form input[type="text"],
.form input[type="password"],
.form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 8px 10px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font: inherit;
    font-weight: 400;
}

.form input[type="file"] { display: block; margin-top: 6px; font-weight: 400; }

.required { color: #cf222e; }
.hint { color: #57606a; font-size: 13px; font-weight: 400; }

.btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #f6f8fa;
    color: #24292f;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: #eaeef2; }
.btn-primary { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.btn-primary:hover { background: #1a5cd0; }
.btn-danger { background: #cf222e; border-color: #cf222e; color: #fff; }
.btn-danger:hover { background: #a40e26; }

.page-list { list-style: none; padding: 0; margin: 0; }

.page-card {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.page-title { font-size: 17px; font-weight: 600; color: #1f6feb; text-decoration: none; }
.page-title:hover { text-decoration: underline; }
.page-desc { margin: 8px 0; color: #57606a; }
.page-meta { font-size: 13px; color: #8c959f; }

.push-toolbar { margin-bottom: 12px; }
.check-all { font-weight: 600; }

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-weight: 400;
    margin-bottom: 0;
    cursor: pointer;
}
.user-item:hover { background: #f6f8fa; }
.user-id { color: #8c959f; font-size: 12px; }

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    overflow: hidden;
}

.table th, .table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eaeef2;
    text-align: left;
    vertical-align: middle;
}

.table th { background: #f6f8fa; font-size: 14px; }
.table tr:last-child td { border-bottom: none; }

.actions { white-space: nowrap; }
.actions form { display: inline-block; margin: 0 4px 0 0; }
.actions .btn { margin-right: 4px; }

.empty { color: #57606a; }
