* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; background: #f4f6fa; color: #222; font-size: 14px; }
a { color: #4a6cf7; text-decoration: none; }
a:hover { text-decoration: underline; }
.bar { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.04); padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.bar .brand { font-weight: 600; font-size: 16px; color: #4a6cf7; }
.bar nav a { margin-left: 18px; color: #666; }
.bar nav a:hover { color: #4a6cf7; }
.wrap { max-width: 1200px; margin: 24px auto; padding: 0 16px; }
.card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.card h2, .card h3 { margin: 0 0 16px; font-size: 16px; color: #333; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kpi { background: #fff; border-radius: 8px; padding: 16px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.kpi .label { color: #888; font-size: 13px; }
.kpi .num { font-size: 26px; font-weight: 600; color: #4a6cf7; margin-top: 6px; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 8px 10px; border-bottom: 1px solid #eef0f4; text-align: left; font-size: 13px; }
table th { background: #fafbfd; color: #666; font-weight: 500; }
table tr:hover td { background: #f9faff; }
input, select, textarea { padding: 7px 10px; border: 1px solid #d8dde6; border-radius: 5px; font-size: 13px; outline: none; }
input:focus, select:focus { border-color: #4a6cf7; }
button, .btn { padding: 7px 14px; background: #4a6cf7; color: #fff; border: none; border-radius: 5px; cursor: pointer; font-size: 13px; }
button:hover, .btn:hover { background: #3955d6; color: #fff; text-decoration: none; }
.btn-mini { padding: 4px 10px; font-size: 12px; }
.btn-warn { background: #f59e0b; }
.btn-warn:hover { background: #d97706; }
.btn-danger { background: #ef4444; }
.btn-danger:hover { background: #dc2626; }
.btn-ghost { background: #fff; color: #4a6cf7; border: 1px solid #4a6cf7; }
.btn-ghost:hover { background: #f0f3ff; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 0 0 auto; }
.row.form { gap: 12px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.form-grid label { display: flex; flex-direction: column; font-size: 12px; color: #666; gap: 4px; }
.muted { color: #888; }
.tag { padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag-ok { background: #d1fae5; color: #065f46; }
.tag-warn { background: #fef3c7; color: #92400e; }
.tag-bad { background: #fee2e2; color: #991b1b; }
.tag-mute { background: #e5e7eb; color: #4b5563; }
.center { display: flex; justify-content: center; align-items: center; min-height: 80vh; }
.login-card { width: 320px; padding: 30px; background: #fff; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.login-card h1 { margin: 0 0 20px; font-size: 20px; text-align: center; color: #4a6cf7; }
.login-card input { width: 100%; padding: 10px; margin-bottom: 12px; }
.login-card button { width: 100%; padding: 10px; }
.err { color: #dc2626; font-size: 13px; margin-bottom: 10px; text-align: center; }
.codes { background: #1f2937; color: #d1d5db; padding: 12px; border-radius: 5px; font-family: monospace; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
