/* 闹小铺大屏 - 管理后台样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: #f2f4f8; color: #22293a; font-size: 14px;
}
button { font-family: inherit; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e2a4a 0%, #2b3f6b 50%, #1e2a4a 100%); }
.login-card { width: 380px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; padding: 40px 36px; color: #eef2ff; backdrop-filter: blur(8px); }
.login-title { text-align: center; font-size: 20px; margin-bottom: 26px; letter-spacing: 1px; }
.login-card .field input { background: rgba(255,255,255,.1); color: #fff; }
.login-card .field input:focus { border-color: #6f9bff; }
.login-card .field span { color: rgba(255,255,255,.72); }
.login-card .form-err { color: #ff9c9c; }

/* ---------- 通用 ---------- */
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.field input {
  width: 100%; height: 40px; padding: 0 12px; font-size: 14px;
  border: 1px solid #ccd3e0; border-radius: 8px; outline: none; background: #fff; color: #22293a;
}
.field input:focus { border-color: #4f7cff; }
.check { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 14px; }
.form-err { color: #d33; font-size: 13px; min-height: 18px; margin: 6px 0; }

.btn {
  height: 36px; padding: 0 16px; border: 1px solid #ccd3e0; border-radius: 8px;
  background: #fff; color: #333; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #f5f7fb; }
.btn-primary { background: #3b6bff; border-color: #3b6bff; color: #fff; }
.btn-primary:hover { background: #2f5ce8; }
.btn-danger { color: #d33; border-color: #e3b3b3; }
.btn-danger:hover { background: #fdf1f1; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: inherit; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; height: 44px; letter-spacing: 4px; }

/* ---------- 顶栏 / 页签 ---------- */
.topbar { height: 56px; background: #232e4d; color: #eef2ff; display: flex;
  align-items: center; justify-content: space-between; padding: 0 24px; }
.topbar-brand { font-size: 17px; font-weight: 600; letter-spacing: 1px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-user { font-size: 13px; opacity: .85; }
.tabs { display: flex; gap: 4px; background: #fff; border-bottom: 1px solid #e3e8f0; padding: 0 24px; }
.tab { height: 44px; padding: 0 22px; border: 0; background: none; font-size: 15px; color: #666;
  cursor: pointer; border-bottom: 2px solid transparent; }
.tab:hover { color: #3b6bff; }
.tab.active { color: #3b6bff; border-bottom-color: #3b6bff; font-weight: 600; }

/* ---------- 面板 / 表格 ---------- */
.page { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.panel { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h2 { font-size: 17px; }
.hint { color: #8a93a6; font-size: 13px; margin-bottom: 12px; line-height: 1.6; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef1f6; font-size: 13px; }
.tbl th { color: #8a93a6; font-weight: 500; background: #fafbfd; }
.tbl td .url-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.tag-on { background: #e6f4ea; color: #1e7d3c; }
.tag-off { background: #fdeaea; color: #c0392b; }
.tag-admin { background: #e8ecff; color: #3b5bdb; }
.row-actions { display: flex; gap: 6px; }

/* ---------- 分配 ---------- */
.assign-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.assign-col h3 { font-size: 14px; color: #666; margin-bottom: 10px; }
.pick-list { list-style: none; border: 1px solid #e3e8f0; border-radius: 8px; overflow: hidden; max-height: 420px; overflow-y: auto; }
.pick-list li { padding: 11px 14px; cursor: pointer; border-bottom: 1px solid #f0f3f8; font-size: 14px; display: flex; justify-content: space-between; }
.pick-list li:last-child { border-bottom: 0; }
.pick-list li:hover { background: #f5f8ff; }
.pick-list li.active { background: #eef2ff; color: #3b5bdb; font-weight: 600; }
.assign-links label { display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border: 1px solid #e3e8f0; border-radius: 8px; margin-bottom: 8px; cursor: pointer; font-size: 14px; }
.assign-links label:hover { background: #f5f8ff; }
.assign-links .url { color: #8a93a6; font-size: 12px; word-break: break-all; }
.assign-actions { margin-top: 14px; }

/* ---------- 弹窗 ---------- */
.dlg { border: 0; border-radius: 14px; padding: 26px 28px; width: 400px; box-shadow: 0 18px 50px rgba(20,30,60,.25); }
.dlg::backdrop { background: rgba(15,22,40,.5); }
.dlg-form h3 { font-size: 17px; margin-bottom: 18px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: #2b3550; color: #fff; padding: 10px 22px; border-radius: 8px; font-size: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 999; }
.toast.err { background: #c0392b; }
