:root {
  --bg: #f6f7f5; --surface: #ffffff; --ink: #15302d; --muted: #66766f; --line: #dfe5e1;
  --accent: #17645c; --accent-ink: #ffffff; --hot: #c2410c; --hot-bg: #fff3ec; --ok: #2d7a46;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101715; --surface: #172220; --ink: #e5ece9; --muted: #98aaa4; --line: #2a3936;
    --accent: #4fb3a6; --accent-ink: #0d1513; --hot: #fb8a5a; --hot-bg: #2b1c15; --ok: #6cc28a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101715; --surface: #172220; --ink: #e5ece9; --muted: #98aaa4; --line: #2a3936;
  --accent: #4fb3a6; --accent-ink: #0d1513; --hot: #fb8a5a; --hot-bg: #2b1c15; --ok: #6cc28a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
h2 { font-size: 18px; margin: 0 0 12px; }
.muted { color: var(--muted); }

.top { background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 0; }
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { margin: 0; font-size: 30px; font-weight: 800; color: var(--accent); letter-spacing: .02em; line-height: 1.1; }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.status { margin: 0; font-size: 14px; color: var(--muted); background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; }
.status .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.status.stale .dot { background: var(--hot); }

section { margin: 22px 0; }
.cities { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.city { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.city h3 { margin: 0 0 8px; font-size: 22px; }
.city .none { margin: 0; font-size: 18px; color: var(--muted); }
.city .checked { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.city.has { border: 2px solid var(--hot); background: var(--hot-bg); }
.city .tag { font-size: 14px; color: var(--hot); font-weight: 700; margin-left: 6px; }
.dates { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; padding: 0; list-style: none; }
.dates li { background: var(--surface); color: var(--hot); border: 1px solid var(--hot); border-radius: 10px; padding: 6px 12px;
  font-size: 20px; font-weight: 700; line-height: 1.25; }
.dates small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

.helped .count { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.helped h2 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.helped-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.helped-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; line-height: 1.35; }
.helped-list b { display: block; font-size: 15px; }
.helped-list span { color: var(--muted); }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 0; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
input[type=email], input[type=date] { padding: 10px 12px; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; }
input[type=date] { display: block; width: 100%; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 14px; cursor: pointer; }
.chips label:has(input:checked) { border-color: var(--accent); color: var(--accent); }
.dates-pick { margin-top: 8px; font-size: 14px; color: var(--muted); }
.dates-pick summary { cursor: pointer; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-note { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; }
.help .wechat { font-size: 22px; margin: 4px 0 12px; }

.week { margin: -4px 0 10px; color: var(--muted); font-size: 14px; }
.week b { color: var(--ink); font-size: 18px; }
.history { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.history .day { padding: 10px 0; border-bottom: 1px solid var(--line); }
.history .day:last-child { border-bottom: 0; }
.history h3 { margin: 0 0 6px; font-size: 15px; }
.history .line { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: 4px 0; font-size: 14px; }
.history .where { color: var(--muted); min-width: 4.5em; }
.history .chip { border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
.history .chip.live { border-color: var(--hot); color: var(--hot); font-weight: 600; }
.history .chip small { color: var(--muted); margin-left: 4px; }

.foot { padding: 4px 16px 36px; font-size: 12px; color: var(--muted); }
.notice { max-width: 560px; margin: 60px auto; padding: 0 16px; }
