:root {
  --ink: #16202f;
  --muted: #66748a;
  --line: #e3e9f2;
  --bg: #f4f7fb;
  --card: #ffffff;
  --brand: #1f5eff;
  --brand-2: #2f7bff;
  --ok: #0f9d58;
  --warn: #c47f00;
  --bad: #cf3b3b;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.top {
  background: linear-gradient(120deg, #143a8f 0%, #1f5eff 55%, #2f8bff 100%);
  color: #fff;
  padding: 26px 0 22px;
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  width: 46px; height: 46px; border-radius: 13px;
  background: rgba(255,255,255,.16);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.28);
}
.brand h1 { margin: 0; font-size: 22px; letter-spacing: .5px; }
.brand p { margin: 3px 0 0; font-size: 12.5px; opacity: .82; }
.refresh { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.refresh-state { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .95; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6dffb0; box-shadow: 0 0 0 4px rgba(109,255,176,.18); }
.refresh-sub { font-size: 12.5px; opacity: .85; }
.refresh-sub b { font-variant-numeric: tabular-nums; color: #fff; }
.btn {
  border: 0; cursor: pointer; border-radius: 10px; padding: 9px 16px;
  background: #fff; color: #1742a8; font-weight: 600; font-size: 13.5px;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(9,30,80,.18); }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn.ghost { background: #eef3ff; color: #1742a8; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: -16px 0 18px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; box-shadow: 0 8px 26px rgba(23, 52, 110, .06);
}
.stat b { display: block; font-size: 26px; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); }
.filters {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
  box-shadow: 0 8px 26px rgba(23, 52, 110, .05);
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 130px; }
.field.grow { flex: 1 1 180px; }
.field label { font-size: 12px; color: var(--muted); }
input, select {
  height: 36px; border: 1px solid var(--line); border-radius: 9px;
  padding: 0 10px; font: inherit; font-size: 13.5px; color: var(--ink);
  background: #fbfcff; outline: none;
}
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,94,255,.12); }
.notice {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 10px;
  background: #fff4e5; border: 1px solid #ffe0b3; color: #8a5300; font-size: 13px;
}
.day { margin: 22px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.day h2 { margin: 0; font-size: 16px; }
.day span { color: var(--muted); font-size: 12.5px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  padding: 14px 16px; display: flex; gap: 14px;
  box-shadow: 0 6px 20px rgba(23, 52, 110, .045);
}
.datebox {
  flex: 0 0 58px; height: 58px; border-radius: 11px;
  background: #eef4ff; color: #1742a8; display: grid; place-items: center;
  font-size: 17px; font-weight: 700; line-height: 1.1; text-align: center;
}
.datebox small { display: block; font-size: 11px; font-weight: 500; color: #5a76ad; }
.body { min-width: 0; flex: 1; }
.title { font-weight: 650; font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #edf2ff; color: #2b52b5; font-weight: 500; }
.meta { color: var(--muted); font-size: 12.5px; margin-top: 5px; display: flex; gap: 12px; flex-wrap: wrap; }
.meta b { color: #3c4a63; font-weight: 600; }
.progress { margin-top: 9px; height: 6px; border-radius: 999px; background: #edf1f7; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #2f7bff, #61a4ff); }
.line { display: flex; justify-content: space-between; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.line > span { white-space: nowrap; }
.pill { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.pill.open { background: #e7f8ef; color: var(--ok); }
.pill.full { background: #fdeaea; color: var(--bad); }
.pill.closed { background: #eef1f5; color: #6b788b; }
.pill.ending { background: #fff4df; color: var(--warn); }
.empty { text-align: center; color: var(--muted); padding: 42px 0; }
.foot { margin-top: 34px; padding: 20px 0 26px; border-top: 1px solid var(--line); color: #7c8aa0; font-size: 12.5px; }
.foot p { margin: 4px 0; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 24px); }
  .cards { grid-template-columns: 1fr; }
  .stats { gap: 9px; }
  .stat { padding: 12px 13px; }
  .stat b { font-size: 22px; }
  .top { padding: 20px 0 26px; }
  .brand h1 { font-size: 19px; }
  .refresh { width: 100%; justify-content: space-between; }
}
