:root {
  --blue: #185FA5;
  --blue-bg: #E6F1FB;
  --amber: #BA7517;
  --amber-bg: #FAEEDA;
  --green: #3B6D11;
  --green-bg: #EAF3DE;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f8fa;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

header.top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { font-weight: 600; font-size: 16px; color: var(--ink); }
.brand .accent { color: var(--blue); }

main { max-width: 920px; margin: 0 auto; padding: 24px; }

/* ---- 落地页 ---- */
.landing { text-align: center; padding-top: 48px; }
.landing h1 { font-size: 30px; margin: 0 0 8px; }
.landing .sub { color: var(--muted); margin: 0 0 36px; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.entry {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.entry:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.entry-ico { font-size: 28px; width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.entry h2 { margin: 0 0 6px; font-size: 20px; }
.entry p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.entry-go { font-size: 14px; font-weight: 600; }
.entry-blue { border-top: 3px solid var(--blue); }
.entry-blue .entry-ico { background: var(--blue-bg); color: var(--blue); }
.entry-blue .entry-go { color: var(--blue); }
.entry-amber { border-top: 3px solid var(--amber); }
.entry-amber .entry-ico { background: var(--amber-bg); color: var(--amber); }
.entry-amber .entry-go { color: var(--amber); }

/* ---- 表单 ---- */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-head h1 { font-size: 22px; margin: 0; }
.back-link { font-size: 14px; color: var(--blue); text-decoration: none; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-row .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
input[type="text"], input[type="number"], input[type="datetime-local"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.file-drop {
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.file-drop:hover { border-color: var(--blue); color: var(--blue); }
.file-list { margin-top: 10px; font-size: 13px; }
.file-list .fitem { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); }

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #134e89; }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #9c6212; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.msg { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: none; }
.msg.ok { display: block; background: var(--green-bg); color: var(--green); }
.msg.err { display: block; background: #FCEBEB; color: #A32D2D; }

/* ---- 接单端列表 ---- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: center; }
.filters input, .filters select { width: auto; padding: 8px 10px; }
.filters .search { flex: 1; min-width: 160px; }

.order-list { display: grid; gap: 14px; }
.order-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: box-shadow .15s ease;
}
.order-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.order-card .oc-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.order-card h3 { margin: 0 0 6px; font-size: 17px; }
.order-card .meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.b-open { background: var(--blue-bg); color: var(--blue); }
.b-claimed { background: var(--amber-bg); color: var(--amber); }
.b-in_progress { background: #E1F5EE; color: #0F6E56; }
.b-delivered { background: #FBEAF0; color: #993556; }
.b-completed { background: var(--green-bg); color: var(--green); }
.b-cancelled { background: #F1EFE8; color: #5F5E5A; }

.empty { text-align: center; color: var(--muted); padding: 50px 0; }

/* ---- 详情弹层 ---- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto; z-index: 50;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 16px; max-width: 640px; width: 100%; padding: 24px;
}
.modal h2 { margin: 0 0 4px; font-size: 20px; }
.modal .desc { white-space: pre-wrap; background: var(--bg); border-radius: 10px; padding: 12px; font-size: 14px; margin: 12px 0; }
.modal .files a { display: inline-block; margin: 4px 8px 4px 0; color: var(--blue); text-decoration: none; font-size: 14px; }
.modal .files a:hover { text-decoration: underline; }
.modal .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.modal-close { float: right; cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; }
.section-title { font-size: 14px; font-weight: 600; margin: 16px 0 6px; }

.mine-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.mine-head input { width: 220px; }
