* { box-sizing: border-box; }
body {
    margin: 0;
    background: #f4f6f8;
    color: #1f2933;
    font-family: "SourceHanSans", "Microsoft YaHei", sans-serif;
}
a { color: #143d66; }
.nav {
    display: flex;
    gap: 18px;
    align-items: center;
    background: #143d66;
    color: #fff;
    padding: 0 20px;
    min-height: 56px;
}
.nav a { color: #fff; text-decoration: none; }
.nav .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin-right: 12px;
}
.nav .brand img { height: 28px; width: auto; display: block; }
.login-logo { height: 32px; width: auto; display: block; margin: 0 0 12px; }
.nav form { margin-left: auto; }
.nav button {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
}
.page { max-width: 1100px; margin: 0 auto; padding: 20px; }
.panel { background: #fff; border: 1px solid #e3e8ee; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #52606d; }
input, textarea, select, button { font-size: 14px; font-family: inherit; }
input[type="text"], input[type="password"], input[type="date"], textarea, select {
    padding: 8px 10px;
    border: 1px solid #cbd2d9;
    border-radius: 4px;
    min-width: 140px;
}
textarea { width: 100%; min-width: 0; line-height: 1.7; }
button, .btn {
    background: #143d66;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 8px 14px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}
button.secondary, .btn.secondary { background: #52606d; }
button.danger { background: #8c2f2f; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #e4e7eb; padding: 10px 8px; text-align: left; vertical-align: top; }
th { color: #52606d; font-weight: 600; font-size: 13px; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.err { color: #8c2f2f; background: #f8ecec; padding: 10px 12px; border-radius: 6px; }
.ok { color: #1e6b45; background: #e8f6ee; padding: 10px 12px; border-radius: 6px; }
.sheet {
    background: #fffefb;
    border: 1px solid #e6e0d6;
    padding: 32px 28px;
    margin-top: 12px;
}
.row-actions { display: flex; gap: 8px; }
.muted { color: #7b8794; font-size: 13px; line-height: 1.6; }
.qr-box { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.qr-box img { width: 240px; height: 240px; border: 1px solid #e4e7eb; }
.qr-box input[type="text"] { width: min(560px, 100%); }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #143d66; }
.login-card { width: min(420px, calc(100% - 32px)); background: #fff; padding: 28px 24px; border-radius: 8px; }
.login-card h1 { margin: 0 0 8px; font-size: 22px; font-weight: normal; }
.login-card label { display: block; margin: 12px 0 6px; }
.login-card input { width: 100%; }
.login-card button { width: 100%; margin-top: 16px; padding: 10px; }
.account-line { display: flex; gap: 8px; align-items: center; }
.account-line input { min-width: 120px; }
