* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6fa; color: #2c3e50; font-size: 14px;
}
header {
  background: #1e293b; color: #fff; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 52px;
}
.logo { font-size: 16px; font-weight: 600; }
nav a { color: #cbd5e1; text-decoration: none; margin-left: 18px; font-size: 14px; }
nav a:hover { color: #fff; }
main { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
h1 { font-size: 22px; margin-bottom: 16px; }
h2 { font-size: 16px; margin: 24px 0 10px; }

table {
  width: 100%; background: #fff; border-collapse: collapse;
  border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef0f4; }
th { background: #f8fafc; font-weight: 600; font-size: 13px; color: #64748b; }
tr:hover td { background: #f8fafc; }
.text-cell { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.path { font-family: monospace; font-size: 12px; color: #64748b; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; color: #94a3b8; padding: 24px; }

.cards { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card {
  background: #fff; border-radius: 8px; padding: 16px 22px; min-width: 140px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.card .num { font-size: 24px; font-weight: 700; color: #1e293b; }
.card .label { font-size: 12px; color: #64748b; margin-top: 4px; }

.tag { background: #e0e7ff; color: #4338ca; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.st { font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.st.ok { background: #dcfce7; color: #15803d; }
.st.err { background: #fee2e2; color: #b91c1c; }
.st.run { background: #fef9c3; color: #a16207; }
.st.wait { background: #f1f5f9; color: #64748b; }

button, .btn-sm {
  background: #3b82f6; color: #fff; border: 0; border-radius: 6px;
  padding: 8px 16px; font-size: 13px; cursor: pointer;
}
button:hover { background: #2563eb; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-sm.danger { background: #ef4444; }
.btn-sm.danger:hover { background: #dc2626; }
button.primary { background: #16a34a; padding: 12px 32px; font-size: 15px; }
button.primary:hover { background: #15803d; }
form.inline { display: inline; }

input, select {
  padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px;
  font-size: 13px; width: 100%;
}
.form-inline { display: flex; gap: 10px; margin-bottom: 8px; }
.form-inline input { width: 240px; }

fieldset {
  background: #fff; border: 0; border-radius: 8px; padding: 18px 20px;
  margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
legend { font-weight: 600; padding: 0 8px; }
fieldset label { display: block; margin: 10px 0 2px; color: #475569; font-size: 13px; }
fieldset label small { color: #94a3b8; }
fieldset input, fieldset select { margin-bottom: 6px; max-width: 480px; }
.actions { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.actions input[type=file] { width: auto; max-width: 260px; }
.actions input[type=date] { width: auto; }
.actions span { font-size: 13px; }

.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.alert.ok { background: #dcfce7; color: #15803d; }
.alert.err { background: #fee2e2; color: #b91c1c; }

.login-box {
  max-width: 320px; margin: 80px auto; background: #fff; padding: 32px;
  border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.login-box h2 { margin-bottom: 16px; }
.login-box input { margin-bottom: 12px; }
.login-box button { width: 100%; padding: 10px; }
