/* 醒狮出场安排 — 亮色、干净、紧凑，手机优先 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #c8102e;
  --red-dark: #a50d26;
  --gold: #c9a227;
  --gold-bg: #fdf6d8;
  --ink: #1f1f1f;
  --muted: #777;
  --line: #e8e8e8;
  --bg: #f6f6f4;
  --card: #fff;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--red); color: #ffd75e;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.top-actions { display: flex; gap: 8px; }
.btn {
  border: 1px solid transparent; border-radius: 8px;
  padding: 7px 13px; font-size: 14px; font-weight: 600;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:active { background: var(--red-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-small { padding: 4px 10px; font-size: 13px; border-radius: 7px; }
.btn-danger { background: #fff; border-color: #f0c4cb; color: var(--red); }

/* 列表 */
.list { max-width: 640px; margin: 0 auto; padding: 10px 12px 40px; }
.day-title {
  color: var(--red); font-weight: 800; font-size: 15px;
  margin: 14px 2px 6px;
}
.day-title:first-child { margin-top: 4px; }
.day-block {
  background: linear-gradient(180deg, #f7dc6f, #eec94f);
  border-radius: 10px;
  padding: 7px 12px;
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 8px;
}
.day-block .d { font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.day-block .w { font-size: 13px; font-weight: 600; color: #5c4a00; }
.day-block .pool-btn { margin-left: auto; }
.next-tag {
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 4px; padding: 2px 6px; letter-spacing: 1px;
}

/* 场次卡片 */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 12px; margin-bottom: 9px;
}
.card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-kind { font-size: 17px; font-weight: 800; }
.card-meta { color: var(--muted); font-size: 13px; }
.badge-short {
  background: #fde8ea; color: var(--red); font-weight: 800; font-size: 13px;
  border-radius: 6px; padding: 2px 8px;
}
.card-note { color: var(--muted); font-size: 13px; margin-top: 4px; }
.role-lines { margin-top: 7px; font-size: 14px; }
.role-lines .rl { padding: 1px 0; }
.role-lines .rl b { font-weight: 700; }
.card-count { margin-top: 5px; font-size: 13px; color: var(--muted); }
.card-actions { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.card-actions .spacer { flex: 1; }

/* 弹窗 */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-card {
  background: #fff; width: 100%; max-width: 640px;
  max-height: 88vh; overflow-y: auto;
  border-radius: 16px 16px 0 0; padding: 16px 16px 22px;
}
@media (min-width: 700px) {
  .modal { align-items: center; }
  .modal-card { border-radius: 16px; }
}
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.modal-sub { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.modal label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.modal label input, .modal label select, .modal label textarea {
  display: block; width: 100%; margin-top: 4px;
  border: 1px solid #d8d8d8; border-radius: 8px; padding: 9px 10px;
  background: #fff;
}
.hint { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }

/* 排人/人手池选择列表 */
.pick-list { display: flex; flex-direction: column; gap: 6px; }
.pick-row {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px;
  background: #fff;
}
.pick-row.booked { opacity: .45; }
.pick-row input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--red); }
.pick-row .pname { font-weight: 700; flex: 1; }
.pick-row .pname small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.pick-row select {
  border: 1px solid #d8d8d8; border-radius: 7px; padding: 6px 6px; background: #fff;
}
.pick-row .booked-note { color: var(--red); font-size: 12px; }

/* 人员管理 */
.member-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.member-row {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px;
}
.member-row .mname { font-weight: 700; }
.member-row .mrole { color: var(--muted); font-size: 13px; }
.member-row .mnote { color: var(--muted); font-size: 12px; }
.member-row .spacer { flex: 1; }
.member-row select { border: 1px solid #d8d8d8; border-radius: 7px; padding: 5px; background: #fff; }
.member-form { display: flex; gap: 6px; flex-wrap: wrap; }
.member-form input, .member-form select {
  border: 1px solid #d8d8d8; border-radius: 8px; padding: 8px 9px;
}
.member-form input[type="text"] { flex: 1 1 90px; min-width: 80px; }

.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: #222; color: #fff; border-radius: 8px; padding: 10px 16px;
  font-size: 14px; z-index: 99; max-width: 90vw;
}
