:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #1a1d29;
  --text2: #6b7280;
  --text3: #9ca3af;
  --primary: #e8720c;
  --primary-light: #fdf0e3;
  --border: #e5e7eb;
  --green: #0f6e56;
  --green-light: #e1f5ee;
  --red: #a32d2d;
  --red-light: #fcebeb;
  --amber: #854f0b;
  --amber-light: #faeeda;
  --blue: #185fa5;
  --blue-light: #e6f1fb;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  border: none; border-radius: 10px;
  padding: 10px 20px;
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: opacity .15s;
  min-height: 44px;
}
.btn:active { opacity: .75; }
.btn:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 2px 8px rgba(232,114,12,.25); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover:not(:disabled) { box-shadow: 0 2px 8px rgba(15,110,86,.25); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover:not(:disabled) { box-shadow: 0 2px 8px rgba(163,45,45,.25); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 13px; min-height: 34px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* 键盘焦点可见（无障碍） */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; font-weight: 500; }

.tag {
  display: inline-flex; align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.tag-submitted { background: var(--amber-light); color: var(--amber); }
.tag-production { background: var(--blue-light); color: var(--blue); }
.tag-completed { background: var(--green-light); color: var(--green); }
.tag-tracking { background: #f4c0d1; color: #993556; }
.tag-track-done { background: #efe9fb; color: #534ab7; }
.tag-abnormal { background: var(--red-light); color: var(--red); }
.tag-urgent { background: var(--red); color: #fff; }

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-fallback {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 500; font-size: 16px;
  flex-shrink: 0;
}

.toast {
  position: fixed;
  left: 50%; bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,20,30,.92);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 999;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

.empty {
  text-align: center;
  color: var(--text3);
  padding: 40px 0;
  font-size: 14px;
}
