/* 移除 sass:color，避免对 CSS 变量做颜色运算 */

:root {
  --bg: #0b1220;
  --card: #121a2b;
  --text: #dde7ff;
  --muted: #9bb0d3;
  --accent: #4f7cff;
  --ok: #23d18b;
  --warn: #ffcc00;
  --err: #ff5c7a;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 70% -10%, #1b2a4a 0%, var(--bg) 60%);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 980px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.card {
  /* 使用原生 color-mix 与 CSS 变量兼容 */
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 96%, white 4%) 0%, var(--card) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--muted);
}

.value {
  font-size: 56px;
  font-weight: 800;
  margin: 6px 0 4px;
}

.sub { color: var(--muted); font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px; font-size: 12px;
  background: rgba(79, 124, 255, 0.15); color: var(--accent);
}

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
select, input {
  background: #0e1627; color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 10px; border-radius: 10px;
}
button {
  background: var(--accent); color: white; border: 0; border-radius: 10px;
  padding: 8px 12px; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79,124,255,.45); }

.list { display: grid; gap: 8px; }
.list-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.badge-ok { color: var(--ok); }
.badge-err { color: var(--err); }

.fade-enter-active, .fade-leave-active { transition: opacity .2s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }


