:root {
  --crm: #2f97e3;
  --crm-dark: #1d4f73;
  --ink: #24343c;
  --muted: #6b7c85;
  --line: #e4ebf0;
  --bg: #f3f6f8;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font: 14px/1.5 "Microsoft YaHei", sans-serif; background: var(--bg); }
a { color: var(--crm); text-decoration: none; }
button, input, select, textarea { font: inherit; }
.crm-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(160deg, #e8f3fb, #f7fafc 46%, #eef3f6);
}
.crm-card {
  width: min(440px, 100%);
  padding: 32px 32px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(29, 79, 115, .12);
}
.crm-card h1 { margin: 0 0 22px; font-size: 20px; text-align: center; color: var(--crm-dark); }
.crm-card label { display: block; margin: 14px 0 6px; color: var(--muted); }
.crm-card input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.crm-code { display: flex; gap: 8px; }
.crm-code input { flex: 1; }
.crm-card .crm-submit, .crm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--crm);
  color: #fff;
  cursor: pointer;
}
.crm-card .crm-submit { width: 100%; margin-top: 22px; }
.crm-links { display: flex; justify-content: space-between; margin-top: 14px; }
.crm-app { display: flex; min-height: 100vh; }
.crm-side {
  width: 210px;
  flex: none;
  background: #173246;
  color: #d5e4ee;
}
.crm-side .brand { padding: 22px 18px 12px; font-size: 16px; color: #fff; }
.crm-side a {
  display: block;
  margin: 4px 12px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #d5e4ee;
}
.crm-side a.is-on, .crm-side a:hover { background: rgba(255,255,255,.12); color: #fff; }
.crm-main { flex: 1; min-width: 0; }
.crm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.crm-top nav { display: flex; gap: 16px; align-items: center; }
.crm-body { padding: 20px; }
.crm-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.crm-panel h2 { margin: 0 0 16px; font-size: 16px; }
.crm-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.crm-filters input, .crm-filters select, .crm-field input, .crm-field select, .crm-field textarea {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.crm-field textarea { height: auto; width: 100%; padding: 8px 10px; }
.crm-field { margin-bottom: 14px; }
.crm-field label { display: block; margin-bottom: 6px; }
.crm-field em { color: #e11d48; font-style: normal; }
.crm-table { width: 100%; border-collapse: collapse; }
.crm-table th, .crm-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.crm-table th { color: var(--muted); font-weight: 600; }
.crm-op { margin-right: 8px; background: none; border: 0; color: var(--crm); cursor: pointer; padding: 0; }
.crm-op.danger { color: #e11d48; }
.crm-pager { display: flex; gap: 8px; margin-top: 14px; }
.crm-file { display: flex; align-items: center; gap: 10px; }
.crm-note { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .crm-app { display: block; }
  .crm-side { width: auto; }
}
