:root { --purple:#7C3AED; --indigo:#4F46E5; --sky:#0EA5E9; --text:#1F2329; --muted:#8A8F99; --line:#ECEDF2; --bg:#F5F6FA; }
* { box-sizing:border-box; }
body { margin:0; font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; background:var(--bg); color:var(--text); font-size:14px; }
.hidden { display:none !important; }
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#7C3AED,#4F46E5 55%,#0EA5E9); }
.login-card { width:400px; background:#fff; border-radius:18px; padding:32px; box-shadow:0 24px 60px rgba(31,35,41,.18); }
.brand { display:flex; align-items:center; gap:12px; margin-bottom:24px; }
.logo { width:44px; height:44px; border-radius:12px; background:linear-gradient(135deg,#7C3AED,#4F46E5); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:20px; }
.logo.sm { width:32px; height:32px; border-radius:9px; font-size:16px; }
.brand-name { font-size:20px; font-weight:700; }
.brand-name.sm { font-size:16px; }
.brand-sub { color:var(--muted); font-size:12px; margin-top:2px; }
.form-row { margin-bottom:16px; }
.form-row label { display:block; font-size:12px; color:var(--muted); margin-bottom:6px; }
input, select, textarea { width:100%; height:38px; border:1px solid var(--line); border-radius:10px; padding:0 12px; font-size:14px; background:#fff; color:var(--text); }
textarea { height:auto; padding:10px 12px; line-height:1.5; }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--purple); box-shadow:0 0 0 3px rgba(124,58,237,.12); }
.btn { border:none; border-radius:10px; padding:0 16px; height:38px; font-size:14px; cursor:pointer; background:#F2F3F5; color:var(--text); }
.btn.primary { background:linear-gradient(135deg,var(--purple),var(--indigo)); color:#fff; font-weight:600; }
.btn.ghost { background:#F2F0FF; color:var(--purple); font-weight:600; }
.btn.sm { height:32px; font-size:13px; padding:0 12px; }
.btn.block { width:100%; }
.btn:disabled { opacity:.55; cursor:not-allowed; }
.tip { margin-top:12px; color:#D93026; font-size:13px; min-height:18px; }
.app { display:flex; min-height:100vh; }
.sidebar { width:210px; background:#fff; border-right:1px solid var(--line); display:flex; flex-direction:column; padding:20px 14px; }
.side-brand { display:flex; align-items:center; gap:10px; margin-bottom:24px; }
nav { display:flex; flex-direction:column; gap:4px; flex:1; }
.nav-item { padding:11px 14px; border-radius:10px; color:#646A73; cursor:pointer; font-size:14px; }
.nav-item:hover { background:var(--bg); }
.nav-item.active { background:#F2F0FF; color:var(--purple); font-weight:600; }
.side-foot { border-top:1px solid var(--line); padding-top:14px; }
.who { font-size:12px; color:var(--muted); margin-bottom:8px; }
.main { flex:1; display:flex; flex-direction:column; }
.topbar { display:flex; align-items:center; justify-content:space-between; padding:18px 24px; background:#fff; border-bottom:1px solid var(--line); }
.topbar h1 { font-size:18px; margin:0; }
.topbar-right { display:flex; gap:10px; align-items:center; }
.select { width:220px; height:34px; }
.view { padding:24px; }
.card { background:#fff; border-radius:14px; padding:20px; margin-bottom:18px; box-shadow:0 6px 18px rgba(31,35,41,.05); }
.card h2 { margin:0 0 16px; font-size:16px; }
.kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; }
.kpi { background:#fff; border-radius:14px; padding:18px; box-shadow:0 6px 18px rgba(31,35,41,.05); }
.kpi .k { color:var(--muted); font-size:12px; }
.kpi .v { font-size:26px; font-weight:700; margin-top:6px; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th, td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); }
th { color:var(--muted); font-weight:500; background:#FBFBFD; }
tr:hover td { background:#FCFCFF; }
.tag { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; }
.tag-purple { background:#F2F0FF; color:var(--purple); }
.tag-green { background:#E8F8EF; color:#12A150; }
.tag-orange { background:#FFF4E8; color:#D97706; }
.tag-gray { background:#F2F3F5; color:#646A73; }
.tag-red { background:#FEECEC; color:#D93026; }
.toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:14px; }
.toolbar input, .toolbar select { height:34px; width:auto; min-width:150px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.toast { position:fixed; top:24px; left:50%; transform:translateX(-50%); background:rgba(31,35,41,.9); color:#fff; padding:10px 18px; border-radius:10px; font-size:13px; z-index:99; }
.empty { padding:40px; text-align:center; color:var(--muted); }
.bar { height:10px; border-radius:6px; background:#F2F0FF; overflow:hidden; }
.bar > i { display:block; height:100%; background:linear-gradient(90deg,var(--purple),var(--sky)); }
.modal-mask { position:fixed; inset:0; background:rgba(31,35,41,.45); display:flex; align-items:center; justify-content:center; z-index:50; }
.modal { width:640px; max-height:86vh; overflow:auto; background:#fff; border-radius:16px; padding:24px; }
.modal h2 { margin:0 0 18px; font-size:17px; }
.modal-foot { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
