* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  background: radial-gradient(1100px 600px at 50% -10%, #2a1236 0%, #15081d 45%, #0b040f 100%);
  color: #eee;
  min-height: 100vh;
  font-size: 14px;
}
a { color: #c9a4f5; text-decoration: none; }
.wrap { max-width: 900px; margin: 0 auto; padding: 20px 16px 60px; }
.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}
h1 { font-size: 22px; letter-spacing: 2px; }
h2 { font-size: 16px; margin-bottom: 12px; color: #e2c6ff; }
.sub { color: rgba(255,255,255,0.5); font-size: 12px; }
.muted { color: rgba(255,255,255,0.45); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
  padding: 9px 18px; border: 0; border-radius: 9px; cursor: pointer;
  background: linear-gradient(135deg, #a45ee8, #7c3aed);
  color: #fff; font-size: 14px; letter-spacing: 1px;
}
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.gray { background: rgba(255,255,255,0.12); }
.btn.green { background: linear-gradient(135deg, #34d399, #059669); }
.btn.red { background: linear-gradient(135deg, #f87171, #dc2626); }
.btn.sm { padding: 5px 12px; font-size: 12px; border-radius: 7px; }
input, select, textarea {
  width: 100%; padding: 9px 11px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06); color: #fff; font-size: 14px; font-family: inherit;
}
select option { background: #1c1026; color: #eee; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #a45ee8; }
label { display: block; margin: 10px 0 4px; color: rgba(255,255,255,0.7); font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); vertical-align: top; }
th { color: rgba(255,255,255,0.5); font-weight: 400; white-space: nowrap; }
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
}
.tag.open { background: rgba(164,94,232,0.2); color: #d8b4fe; }
.tag.grabbed { background: rgba(59,130,246,0.2); color: #93c5fd; }
.tag.pending_review { background: rgba(245,158,11,0.2); color: #fcd34d; }
.tag.completed { background: rgba(52,211,153,0.2); color: #6ee7b7; }
.tag.rejected { background: rgba(248,113,113,0.22); color: #fca5a5; }
.tag.problem { background: rgba(251,146,60,0.25); color: #fdba74; }
.tag.cancelled { background: rgba(255,255,255,0.1); color: #9ca3af; }
.reject-reason {
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(248,113,113,0.5);
  color: #fca5a5;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px);
}
.navbar .brand { font-weight: 700; font-size: 17px; letter-spacing: 2px; color: #e2c6ff; }
.navbar .user { display: flex; gap: 10px; align-items: center; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat-cards .card { margin: 0; text-align: center; padding: 14px; }
.stat-cards b { font-size: 20px; color: #d8b4fe; }
.order-item {
  border: 1px solid rgba(255,255,255,0.10); border-radius: 12px;
  padding: 14px; margin-bottom: 12px; background: rgba(255,255,255,0.03);
}
.order-item .t { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.order-item .meta { color: rgba(255,255,255,0.55); font-size: 12px; line-height: 1.8; }
.order-item .actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.price { color: #fbbf24; font-weight: 700; }
.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  padding: 10px 22px; border-radius: 10px; font-size: 14px; z-index: 999;
  background: rgba(20,10,30,0.95); border: 1px solid rgba(164,94,232,0.5);
  display: none; max-width: 86vw;
}
.toast.show { display: block; animation: fadein .2s; }
.toast.err { border-color: rgba(248,113,113,0.6); color: #fca5a5; }
.toast.ok { border-color: rgba(52,211,153,0.6); color: #6ee7b7; }
@keyframes fadein { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; } }
.empty { text-align: center; color: rgba(255,255,255,0.35); padding: 26px; font-size: 13px; }
.center { text-align: center; }
.login-box { max-width: 400px; margin: 60px auto 0; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); cursor: pointer; font-size: 14px; }
.tabs button.active { background: rgba(164,94,232,0.25); border-color: #a45ee8; color: #fff; }
.check { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 12px; color: rgba(255,255,255,0.6); }
.check input { width: auto; margin-top: 2px; }

/* ========== H5 移动端适配 ========== */
@media (max-width: 768px) {
  .wrap { padding: 12px 10px 44px; }
  .card { padding: 14px 12px; overflow-x: auto; }
  .navbar { padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
  .navbar .user { flex-wrap: wrap; gap: 6px; }
  .stat-cards { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
  .stat-cards .card { padding: 10px 6px; }
  .stat-cards b { font-size: 18px; }
  h1 { font-size: 19px; }
  .login-box { margin: 40px auto 0; }
  .filter-bar { padding: 12px; gap: 8px; }
  .filter-bar input[type=date] { width: 130px; }
  .order-item { padding: 12px 10px; }
  .toast { width: 90vw; }
  .content { padding: 14px 10px; }
  .topbar { padding: 0 10px; }
  #menuBtn { display: inline-flex !important; }
  .sidebar { position: fixed; left: -230px; top: 0; height: 100vh; transition: left .22s ease; z-index: 60; box-shadow: none; }
  .sidebar.open { left: 0; box-shadow: 10px 0 36px rgba(0,0,0,.55); }
  .side-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 55; }
  .side-backdrop.show { display: block; }
  table { min-width: 560px; }
}
