
:root{
  --bg1:#0b1120; --bg2:#101a2b; --panel:#ffffff; --line:#dbe6f2; --text:#0f152a; --muted:#64748b;
  --blue:#2563eb; --cyan:#06b6d4; --green:#059669; --orange:#ea580c; --red:#dc2626;
  --shadow:0 5px 48px rgba(15,23,42,.10); --radius-xl:28px; --radius-lg:22px; --radius-md:16px; --max:1380px;
}
*{box-sizing:border-box} *::before,*::after{box-sizing:border-box}
html{overflow-y:scroll;scrollbar-gutter:stable;}
body{margin:0;font:14px/1.6 system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);
  background:radial-gradient(circle at left top, rgba(37,99,235,.18), transparent 24%),
  radial-gradient(circle at right top, rgba(6,182,212,.16), transparent 22%),
  linear-gradient(180deg,var(--bg1) 0,var(--bg2) 320px,#eef4fb 320px,#f7fafc 100%); min-height:100vh;}
a{text-decoration:none;color:inherit}
.container{max-width:var(--max);margin:0 auto;padding:0 20px}
header{position:sticky;top:0;z-index:100;background:rgba(10,16,30,.76);backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.08)}
.topbar{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand-wrap{display:flex;align-items:center;gap:14px;color:#fff}
.brand{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;font-weight:800;background:linear-gradient(135deg,var(--blue),var(--cyan));box-shadow:0 12px 30px rgba(37,99,235,.35)}
.brand-text h1{margin:0;font-size:20px;letter-spacing:.2px}
.brand-text p{margin:4px 0 0;color:rgba(255,255,255,.72);font-size:13px}
.top-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn{height:42px;padding:0 16px;border-radius:12px;border:1px solid transparent;background:#fff;color:var(--text);font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;box-shadow:0 10px 24px rgba(15,23,42,.10)}
.btn.primary{background:linear-gradient(135deg,var(--blue),#1d4ed8);color:#fff}
.btn.ghost{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);color:#fff;box-shadow:none}
.btn.soft{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe;box-shadow:none}
.btn.warn{background:#fff7ed;color:#c2410c;border-color:#fed7aa;box-shadow:none}
.hero{padding:28px 0 22px}
.hero-card{border-radius:var(--radius-xl);padding:28px;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,255,255,.86));border:1px solid rgba(255,255,255,.18);box-shadow:var(--shadow);backdrop-filter:blur(10px)}
.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#e0ecff;color:#1d4ed8;font-weight:700;font-size:12px}
.hero-card h2{margin:14px 0 10px;font-size:34px;line-height:1.18;letter-spacing:.2px}
.hero-card p{margin:0;color:#475569;font-size:15px;max-width:960px}
.layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;padding-bottom:30px}
.sidebar{position:sticky;top:96px;align-self:start;background:#ffffffd9;border:1px solid rgba(255,255,255,.3);backdrop-filter:blur(10px);border-radius:24px;padding:18px;box-shadow:var(--shadow)}
.sidebar h4{margin:0 0 12px;font-size:15px}
.nav{display:flex;flex-direction:column;gap:8px}
.nav a{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:14px;border:1px solid transparent;color:#334155;font-weight:700}
.nav a:hover,.nav a.active{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.rd-nav-group .nav a{position:relative;padding-left:14px}
.rd-nav-group .nav a.nav-home{
  background:linear-gradient(90deg,rgba(226,232,240,.96),rgba(248,250,252,.95));
  border-color:#cbd5e1;
  color:#0f172a
}
.rd-nav-group .nav a.nav-inventory{
  background:linear-gradient(90deg,rgba(219,234,254,.96),rgba(239,246,255,.92));
  border-color:#bfdbfe;
  color:#1d4ed8
}
.rd-nav-group .nav a.nav-purchase{
  background:linear-gradient(90deg,rgba(255,237,213,.96),rgba(255,247,237,.92));
  border-color:#fdba74;
  color:#c2410c
}
.rd-nav-group .nav a.nav-receive{
  background:linear-gradient(90deg,rgba(220,252,231,.96),rgba(240,253,244,.92));
  border-color:#86efac;
  color:#15803d
}
.rd-nav-group .nav a.nav-return{
  background:linear-gradient(90deg,rgba(237,233,254,.96),rgba(245,243,255,.92));
  border-color:#c4b5fd;
  color:#6d28d9
}
.rd-nav-group .nav a.nav-risk{
  background:linear-gradient(90deg,rgba(254,226,226,.96),rgba(255,241,242,.92));
  border-color:#fca5a5;
  color:#b91c1c
}
.rd-nav-group .nav a.active{
  border-width:2px;
  font-weight:800;
  box-shadow:0 10px 24px rgba(15,23,42,.10), inset 0 0 0 1px rgba(255,255,255,.7);
  transform:translateX(4px)
}
.rd-nav-group .nav a.nav-home.active{
  background:linear-gradient(90deg,rgba(203,213,225,.98),rgba(241,245,249,.96));
  border-color:#94a3b8;
  color:#0f172a
}
.hint{margin-top:14px;padding:14px;border-radius:16px;background:#f8fafc;border:1px dashed var(--line);color:#475569;font-size:12px}
.content{display:grid;gap:18px}
.panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:var(--shadow)}
.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.section-head h3{margin:0;font-size:22px}
.section-head p{margin:6px 0 0;color:#64748b;font-size:13px;max-width:820px}
.pill{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#f8fafc;border:1px solid var(--line);color:#334155;font-weight:700;font-size:12px}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.module{padding:20px;border-radius:20px;border:1px solid var(--line);background:linear-gradient(180deg,#fff,#f8fbff);min-height:220px;display:flex;flex-direction:column;transition:.18s ease}
.module:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(15,23,42,.08)}
.module.disabled{opacity:.7}
.module .num{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#dbeafe;color:#1d4ed8;font-weight:800;margin-bottom:12px}
.module h4{margin:0 0 8px;font-size:18px}
.module p{margin:0 0 14px;color:#64748b;font-size:13px}
.module ul{margin:0;padding-left:18px;color:#334155;flex:1}
.module li{margin:6px 0}
.todo{display:grid;gap:10px}
.todo-item{display:flex;justify-content:space-between;gap:12px;padding:14px;border-radius:16px;border:1px solid var(--line);background:#fff}
.todo-item strong{display:block;font-size:14px}
.todo-item span{color:#64748b;font-size:12px}
.status{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-weight:700;font-size:12px;background:#eff6ff;color:#1d4ed8;white-space:nowrap}
.toolbar,.filters,.two-col{display:grid;gap:12px}
.toolbar{grid-template-columns:repeat(4,1fr) auto}
.filters{grid-template-columns:repeat(4,1fr)}
.field{display:grid;gap:6px}
label{font-weight:700;color:#334155;font-size:13px}
input,select,textarea{width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--text);font:inherit}
textarea{min-height:96px;resize:vertical}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px}
table{width:100%;border-collapse:collapse;background:#fff}
th,td{padding:14px 12px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:top}
th{background:#f8fafc;font-size:12px;color:#475569}
tr:hover td{background:#fbfdff}
.tag{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700}
.tag.blue{background:#dbeafe;color:#1d4ed8}
.tag.green{background:#dcfce7;color:#15803d}
.tag.orange{background:#ffedd5;color:#c2410c}
.tag.red{background:#fee2e2;color:#b91c1c}
.tag.gray{background:#f1f5f9;color:#475569}
.cards-2{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
.cards-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.info-card{padding:18px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#fff,#fbfdff)}
.kv{display:grid;grid-template-columns:130px 1fr;gap:8px 14px;margin-top:12px}
.kv div:nth-child(odd){color:#64748b}
.notice{padding:14px 16px;border-radius:16px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a}
.notice.warn{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.actions{display:flex;gap:10px;flex-wrap:wrap}
.empty{padding:26px;border:1px dashed var(--line);border-radius:18px;text-align:center;color:#64748b;background:#fbfdff}
.list{display:grid;gap:12px}
.list-item{padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff}
.list-item.active{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(59,130,246,.10)}
.small{font-size:12px;color:#64748b}
.metric{padding:16px;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--line)}
.metric strong{display:block;font-size:28px;line-height:1.1;margin-top:8px}
.footer-note{font-size:12px;color:#64748b}
.hidden{display:none}
@media (max-width:1200px){.layout{grid-template-columns:1fr}.grid,.cards-2,.cards-3,.toolbar,.filters{grid-template-columns:repeat(2,1fr)}.sidebar{position:static}}
@media (max-width:760px){.container{padding:0 14px}.hero-card h2{font-size:28px}.top-actions{display:none}.grid,.cards-2,.cards-3,.toolbar,.filters{grid-template-columns:1fr}.kv{grid-template-columns:1fr}}
