* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --pri: #2e6cf0; --bg: #f4f6fb; --line: #e3e8f2; --txt: #2b3550; --dim: #8a94ad;
  --red:#d7263d; --orange:#f46036; --yellow:#e0a800; --blue:#2e86de; --green:#27ae60; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--txt); }
.layout { display: flex; min-height: 100vh; }
.side { width: 210px; background: #0f1d3a; color: #c9d6ef; flex-shrink: 0; position: relative; }
.brand { padding: 20px 18px; font-size: 16px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); letter-spacing: 1px; }
.brand small { display:block; font-weight: 400; font-size: 11px; color: #6e83ad; margin-top: 4px; }
.nav { padding: 12px 0; }
.nav a { display: block; padding: 12px 22px; color: #aab8d8; text-decoration: none; font-size: 14px; cursor: pointer; border-left: 3px solid transparent; }
.nav a:hover { background: rgba(255,255,255,.04); }
.nav a.on { background: rgba(46,108,240,.18); color: #fff; border-left-color: var(--pri); }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.head { height: 56px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.head .h-title { font-size: 17px; font-weight: 600; }
.head .h-right { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 14px; }
.content { padding: 22px 24px; flex: 1; overflow: auto; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.card .n { font-size: 30px; font-weight: 700; }
.card .l { font-size: 13px; color: var(--dim); margin-top: 4px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.toolbar h2 { font-size: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #f7f9fd; color: var(--dim); font-weight: 600; }
tr:hover td { background: #fafbfe; }
.btn { background: var(--pri); color: #fff; border: none; padding: 8px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.btn:hover { opacity: .9; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.gray { background: #eef1f7; color: var(--txt); }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #f3c4ca; }
.tag { font-size: 11px; padding: 2px 9px; border-radius: 10px; color: #fff; }
.pill { font-size:11px; padding:2px 8px; border-radius:4px; background:#eef1f7; color:#5a647e; margin-right:4px; }
.switch { font-size: 12px; padding: 2px 9px; border-radius: 10px; cursor: pointer; }
.switch.on { background: #e3f6ea; color: var(--green); }
.switch.off { background: #f0f0f0; color: var(--dim); }
.modal-bg { position: fixed; inset: 0; background: rgba(20,30,50,.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: #fff; border-radius: 12px; width: 560px; max-height: 88vh; overflow: auto; padding: 24px; }
.modal h3 { font-size: 16px; margin-bottom: 16px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / 3; }
.field label { font-size: 12px; color: var(--dim); }
.field input, .field select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.field .hint { font-size: 11px; color: var(--dim); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.hz-checks { display: flex; gap: 14px; flex-wrap: wrap; }
.hz-checks label { font-size: 13px; color: var(--txt); display: flex; align-items: center; gap: 4px; }
.login-bg { position: fixed; inset: 0; background: linear-gradient(135deg, #0f1d3a, #1a3a6b); display: flex; align-items: center; justify-content: center; }
.login { background: #fff; border-radius: 14px; padding: 36px 34px; width: 360px; }
.login h2 { font-size: 20px; margin-bottom: 6px; }
.login p { font-size: 13px; color: var(--dim); margin-bottom: 22px; }
.login .field { margin-bottom: 14px; }
.login .btn { width: 100%; padding: 11px; font-size: 15px; margin-top: 6px; }
.login .err { color: var(--red); font-size: 13px; margin-top: 10px; }
.empty { padding: 40px; text-align: center; color: var(--dim); font-size: 14px; }
a.toscreen { color: var(--pri); text-decoration: none; }
