/* ============ 变量与重置 ============ */
:root {
  --c-primary: #F5C518;
  --c-primary-dark: #D9A800;
  --c-primary-light: #FFF6CC;
  --c-accent: #4CAF50;
  --c-text: #303133;
  --c-text-2: #606266;
  --c-text-3: #909399;
  --c-border: #DCDFE6;
  --c-border-2: #EBEEF5;
  --c-bg: #F5F7FA;
  --c-bg-2: #FAFBFC;
  --c-white: #FFFFFF;
  --c-danger: #F56C6C;
  --c-warning: #E6A23C;
  --c-success: #67C23A;
  --c-info: #909399;
  --c-debit: #E74C3C;
  --c-credit: #2E86DE;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --radius: 4px;
  --radius-md: 6px;
  --sidebar-w: 200px;
  --topbar-h: 56px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 13px;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 600; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #C0C4CC; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #909399; }
::-webkit-scrollbar-track { background: transparent; }

/* 通用工具类 */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--c-text-3); }
.text-danger { color: var(--c-danger); }
.text-success { color: var(--c-success); }
.text-debit { color: var(--c-debit); }
.text-credit { color: var(--c-credit); }
.text-bold { font-weight: 600; }
.text-mono { font-family: "Consolas", "Monaco", monospace; }
.nowrap { white-space: nowrap; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; } .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; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }
