
:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-soft: #0d1424;
  --card: rgba(18, 27, 46, 0.78);
  --card-solid: #111a2c;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(125, 211, 252, 0.36);
  --text: #e5eefc;
  --muted: #98a6bb;
  --muted-2: #75849a;
  --brand: #7dd3fc;
  --brand-2: #a78bfa;
  --good: #86efac;
  --warn: #fde68a;
  --danger: #fca5a5;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(125, 211, 252, 0.20), transparent 30%),
    radial-gradient(circle at 80% 8%, rgba(167, 139, 250, 0.20), transparent 26%),
    linear-gradient(180deg, #070b14 0%, #0a1020 44%, #070b14 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.page { width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 48px; }
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.94), rgba(17, 24, 39, 0.74));
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.18), transparent 70%);
  pointer-events: none;
}
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }
h1 { margin: 10px 0 12px; font-size: clamp(34px, 6vw, 68px); line-height: 0.98; letter-spacing: -0.05em; }
.hero p { max-width: 760px; color: var(--muted); font-size: 17px; line-height: 1.8; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.stat { border: 1px solid var(--border); background: rgba(255,255,255,0.04); border-radius: 18px; padding: 15px; }
.stat strong { display: block; font-size: 24px; color: white; }
.stat span { color: var(--muted-2); font-size: 13px; }
.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 14px;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0,0,0,.22);
}
.controls { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(150px, .6fr)); gap: 10px; }
.input, .select {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 13px;
  outline: none;
}
.input:focus, .select:focus { border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(125, 211, 252, .10); }
.quick-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
  transition: .16s ease;
}
.pill:hover, .pill.active { color: #06111f; background: var(--brand); border-color: transparent; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 34px 0 14px; }
.section-head h2 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.count { color: var(--brand); font-weight: 700; }
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.route-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px;
  box-shadow: 0 10px 34px rgba(0,0,0,.18);
}
.route-card h3 { margin: 0 0 8px; font-size: 19px; }
.route-card > p { margin: 0 0 16px; color: var(--muted); line-height: 1.65; }
.stage { border-left: 2px solid rgba(125, 211, 252, .35); padding-left: 12px; margin: 13px 0; }
.stage-title { font-weight: 700; color: white; font-size: 14px; margin-bottom: 8px; }
.stage-links { display: flex; flex-wrap: wrap; gap: 7px; }
.mini-link { color: var(--brand); background: rgba(125,211,252,.08); border: 1px solid rgba(125,211,252,.16); border-radius: 999px; padding: 6px 9px; font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  display: flex;
  flex-direction: column;
  min-height: 315px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(180deg, rgba(18, 27, 46, .88), rgba(15, 23, 42, .72));
  box-shadow: 0 10px 34px rgba(0,0,0,.18);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(125,211,252,.34); background: rgba(22, 33, 56, .92); }
.card-top { display:flex; justify-content: space-between; gap: 10px; align-items: start; margin-bottom: 10px; }
.card h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.level { flex: 0 0 auto; color: #07111d; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-radius: 999px; padding: 5px 8px; font-size: 12px; font-weight: 800; }
.meta { color: var(--muted-2); font-size: 13px; margin-bottom: 12px; }
.reason { color: #cfdbed; line-height: 1.68; margin: 0 0 12px; }
.detail { display: grid; gap: 8px; margin-top: auto; color: var(--muted); font-size: 13px; }
.detail b { color: #d9e7fb; }
.tags { display:flex; flex-wrap:wrap; gap: 7px; margin: 13px 0 14px; }
.tag { border: 1px solid rgba(148, 163, 184, .14); color: #b8c6d9; background: rgba(255,255,255,.04); border-radius: 999px; padding: 5px 8px; font-size: 12px; }
.card-actions { display:flex; gap: 8px; margin-top: 14px; }
.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
}
.btn.primary { color: #07111d; background: var(--brand); border-color: transparent; font-weight: 800; }
.btn:hover { filter: brightness(1.08); }
.empty, .error, .loading-card {
  margin: 60px auto;
  width: min(680px, calc(100% - 32px));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  background: var(--card);
  text-align: center;
  color: var(--muted);
}
.loader { width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.footer { margin-top: 42px; color: var(--muted-2); text-align: center; font-size: 13px; }
@media (max-width: 980px) {
  .stats, .grid, .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page { width: min(100% - 22px, 1220px); padding-top: 16px; }
  .hero { padding: 24px; border-radius: 24px; }
  .stats, .grid, .routes, .controls { grid-template-columns: 1fr; }
  .toolbar { position: static; }
  .card { min-height: unset; }
  .section-head { align-items: start; flex-direction: column; }
}
