/* 办公用品管理系统 · 通用样式（移动端优先、企业级清爽办公风） */

:root {
  --brand: #2563eb;
  --brand-dark: #1a56db;
  --ok: #16a34a;
  --warn: #ea580c;
  --danger: #dc2626;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* 底部导航 */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 0 10px;
  color: #9ca3af;
  transition: color 0.15s ease;
}
.nav-item.active {
  color: var(--brand);
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.nav-item.active .nav-icon {
  transform: translateY(-1px) scale(1.08);
}

/* 快捷入口 */
.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  color: #4b5563;
  transition: transform 0.12s ease;
}
.quick-btn:active {
  transform: scale(0.94);
}
.quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

/* 状态药丸 */
.status-pill {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* 步骤条 */
.step {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9ca3af;
  white-space: nowrap;
}
.step.done {
  color: var(--brand);
}
.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5e7eb;
  font-size: 11px;
  color: #6b7280;
}
.step.done .step-dot {
  background: #dbeafe;
  color: var(--brand-dark);
}
.step-line {
  flex: 1;
  height: 1px;
  min-width: 12px;
  background: #e5e7eb;
  margin: 0 6px;
}

/* 统计卡 */
.stat-card {
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  background: #fff;
  padding: 14px 12px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
.stat-label {
  font-size: 12px;
  color: #6b7280;
}
.stat-value {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 600;
}

/* 分类筛选 */
.cat-chip {
  flex-shrink: 0;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 12px;
  color: #6b7280;
  transition: all 0.15s ease;
}
.cat-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.cat-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
  transition: all 0.15s ease;
}
.cat-item.active {
  background: #eff6ff;
  color: var(--brand-dark);
  font-weight: 500;
}

/* 分段按钮 */
.seg-btn {
  flex: 1;
  padding: 8px 0;
  border-radius: 12px;
  text-align: center;
  color: #6b7280;
  transition: all 0.15s ease;
}
.seg-btn.active {
  background: var(--brand);
  color: #fff;
  font-weight: 500;
}

/* 数量步进按钮 */
.step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.1s ease;
}
.step-btn:active {
  transform: scale(0.92);
  background: #f3f4f6;
}

/* 标签按钮 */
.tab-btn {
  padding: 4px 12px;
  border-radius: 10px;
  color: #6b7280;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.tab-btn.active {
  background: #eff6ff;
  color: var(--brand-dark);
  border-color: #bfdbfe;
  font-weight: 500;
}

/* 卡片入场动效 */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-card {
  animation: cardIn 0.28s ease both;
}

/* 表格（PC 端） */
.table {
  width: 100%;
  font-size: 14px;
}
.table th {
  text-align: left;
  font-weight: 500;
  color: #6b7280;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
}
.table tr.is-low td {
  background: #fef2f2;
}
