/* =============================================================
   数启新自动化流程控制管理系统 v1.0
   基础样式：设计变量 / 重置 / 排版 / 通用工具
   ============================================================= */
:root {
    --c-bg: #edf1f7;
    --c-bg-soft: #f6f8fb;
    --c-panel: #ffffff;
    --c-ink: #0e1a2b;
    --c-ink-2: #334155;
    --c-muted: #64748b;
    --c-faint: #94a3b8;
    --c-line: #e3e9f1;
    --c-line-soft: #eef2f7;
    --c-brand: #0fa889;
    --c-brand-2: #16c9a0;
    --c-brand-soft: #e6f7f2;
    --c-blue: #2f6bff;
    --c-blue-soft: #edf2ff;
    --c-amber: #e79a10;
    --c-amber-soft: #fdf4e3;
    --c-red: #e04a4f;
    --c-red-soft: #fdeeee;
    --c-purple: #7358e8;
    --c-purple-soft: #f0edff;
    --c-deep: #07111f;
    --c-deep-2: #0b1a2c;
    --c-deep-3: #102439;
    --shadow-xs: 0 1px 2px rgba(14, 26, 43, .05);
    --shadow-sm: 0 4px 12px rgba(14, 26, 43, .05);
    --shadow: 0 10px 30px rgba(14, 26, 43, .07);
    --shadow-lg: 0 28px 70px rgba(5, 14, 27, .22);
    --radius-sm: 8px;
    --radius: 13px;
    --radius-lg: 18px;
    --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
    --font-num: "Bahnschrift", "DIN Alternate", "Cascadia Mono", "Consolas", var(--font);
    --rail-w: 78px;
    --sub-w: 234px;
    --top-h: 64px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    color: var(--c-ink);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
svg { display: block; }
img { max-width: 100%; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #a9b8cb; }
::-webkit-scrollbar-track { background: transparent; }

.icon {
    width: 18px; height: 18px; flex: none;
    stroke-width: 1.9;
    vertical-align: middle;
}
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; }

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.mono { font-family: var(--font-num); letter-spacing: .2px; }
.text-muted { color: var(--c-muted); }
.text-faint { color: var(--c-faint); }
.text-red { color: var(--c-red); }
.text-green { color: var(--c-brand); }
.text-blue { color: var(--c-blue); }
.text-amber { color: var(--c-amber); }
.tc { text-align: center; }
.tr { text-align: right; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(22, 201, 160, .45); } 50% { box-shadow: 0 0 0 5px rgba(22, 201, 160, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -320px 0; } 100% { background-position: 320px 0; } }
@keyframes drawLine { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
