:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1c1c;
  --text-muted: #6b6b6b;
  --border: #e6e4e0;
  --accent: #2563eb;
  --ok: #16803c;
  --ok-bg: #e9f7ef;
  --down: #b42318;
  --down-bg: #fdecea;
  --unknown-bg: #f2f2f0;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15161a;
    --surface: #1e2025;
    --text: #eaeaea;
    --text-muted: #9a9a9a;
    --border: #2c2e33;
    --accent: #6ea8fe;
    --ok: #4ade80;
    --ok-bg: #12321f;
    --down: #f87171;
    --down-bg: #351616;
    --unknown-bg: #26282e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.site-nav a { margin-left: 16px; color: var(--text-muted); font-size: 0.95rem; }
.site-nav a:first-child { margin-left: 0; }

main.wrap { padding-top: 28px; padding-bottom: 48px; min-height: 60vh; }

.hero { margin-bottom: 24px; }
.hero h1 { font-size: 1.6rem; margin: 0 0 8px; }
.hero-sub { color: var(--text-muted); margin: 0 0 10px; }
.hero-badge {
  display: inline-block;
  background: var(--ok-bg);
  color: var(--ok);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.filters {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  background: var(--surface);
}
.filter-group { margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filter-group:last-of-type { margin-bottom: 0; }
.filter-label { font-size: 0.85rem; color: var(--text-muted); margin-right: 6px; min-width: 70px; }
.filter-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filter-reset {
  margin-top: 10px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.station-list { display: flex; flex-direction: column; gap: 12px; }
.station-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
}
.station-card.is-hidden { display: none; }
.station-card h2 { margin: 0 0 4px; font-size: 1.1rem; }
.station-url { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 8px; word-break: break-all; }
.station-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin: 0 0 8px; }
.status-ok { background: var(--ok-bg); color: var(--ok); }
.status-down { background: var(--down-bg); color: var(--down); }
.status-unknown { background: var(--unknown-bg); color: var(--text-muted); }
.station-tags { margin: 0 0 6px; }
.tag {
  display: inline-block;
  background: var(--unknown-bg);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}
.station-rates { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

.station-detail h1 { margin-bottom: 6px; }
.station-visit { word-break: break-all; }
.station-fields { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 18px 0; }
.station-fields dt { color: var(--text-muted); font-size: 0.85rem; }
.station-fields dd { margin: 0; }

.timeline-list { list-style: none; padding: 0; margin: 0; }
.timeline-list li {
  border-left: 2px solid var(--border);
  padding: 4px 0 12px 16px;
  font-size: 0.95rem;
}
.timeline-list time { color: var(--text-muted); font-size: 0.85rem; margin-right: 6px; }

.about-promise h1 { font-size: 1.5rem; line-height: 1.4; }
.warn-box {
  background: var(--unknown-bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 20px 0 40px;
}
.site-footer p { margin: 4px 0; }
