* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f6fa; color: #222; }
.topbar { height: 56px; background: #1e2a44; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.brand { font-size: 18px; font-weight: 600; }
.server { font-size: 12px; opacity: 0.8; }
.layout { display: flex; min-height: calc(100vh - 56px); }
.sidebar { width: 160px; background: #fff; border-right: 1px solid #eee; padding: 12px 0; }
.menu { display: block; width: 100%; text-align: left; padding: 12px 20px; border: none; background: none; cursor: pointer; font-size: 14px; color: #444; }
.menu.active { background: #eef3ff; color: #2563eb; font-weight: 600; border-left: 3px solid #2563eb; }
.content { flex: 1; padding: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h2 { font-size: 18px; }
.btn { padding: 8px 16px; border: none; border-radius: 6px; background: #e5e7eb; color: #222; cursor: pointer; font-size: 14px; }
.btn.primary { background: #2563eb; color: #fff; }
.btn.primary:hover { background: #1d4ed8; }
.table-wrap { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #f0f0f0; }
th { background: #fafafa; color: #666; font-weight: 600; }
tr:hover td { background: #fafbff; }
.empty { text-align: center; color: #999; padding: 30px; }
.tag { padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.tag.on { background: #e7f7ec; color: #16a34a; }
.tag.off { background: #fdeaea; color: #dc2626; }
.link { border: none; background: none; color: #2563eb; cursor: pointer; margin-right: 8px; font-size: 13px; }
.link.danger { color: #dc2626; }
.hidden { display: none !important; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal-box { background: #fff; width: 460px; max-height: 90vh; overflow-y: auto; padding: 24px; border-radius: 10px; }
.modal-box h3 { margin-bottom: 16px; }
.modal-box label { display: block; font-size: 13px; color: #555; margin-bottom: 12px; }
.modal-box input, .modal-box select { width: 100%; padding: 8px 10px; margin-top: 4px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); padding: 10px 20px; border-radius: 6px; color: #fff; z-index: 200; font-size: 14px; }
.toast.ok { background: #16a34a; }
.toast.err { background: #dc2626; }
.top-right { display: flex; align-items: center; gap: 14px; }
.logout-btn { background: rgba(255,255,255,0.15); color: #fff; border: none; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.logout-btn:hover { background: rgba(255,255,255,0.28); }
#loginModal { z-index: 300; }
.login-box { width: 360px; }
.login-tip { color: #888; font-size: 13px; margin-bottom: 16px; }
.remember { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 16px; }
.remember input { width: auto; margin: 0; }
