@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --ink: #ffffff;
  --ink-dim: rgba(255,255,255,0.94);
  --glass: rgba(10,14,20,0.55);
  --glass-line: rgba(255,255,255,0.22);
  --violet: #b8a4ff;
  --teal: #6ab0ff;
  --amber: #ffc169;
  --red: #ff6b6b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
}

/* 固定不動的背景：捲動頁面時不跟著移動 */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #0b0d10;
  background-image:
    linear-gradient(180deg, rgba(6,8,10,0.35) 0%, rgba(6,8,10,0.55) 100%),
    url('bg-supra.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.page {
  padding: 44px 24px 80px;
  min-height: 100vh;
}

.head {
  max-width: 1040px;
  margin: 0 auto 30px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.head h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 28px;
  margin: 0;
  background: linear-gradient(90deg, #fff, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.clock {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
}

.grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  padding: 20px 20px 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  background: linear-gradient(145deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.25);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.desc {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-dim);
  margin: -6px 0 14px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(255,255,255,0.14);
  padding: 4px 10px;
  border-radius: 20px;
}

.pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.pill.ok .dot { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.pill.warn .dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.pill.error .dot { background: var(--red); box-shadow: 0 0 10px var(--red); }

.card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--ink);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.stat {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 0;
  color: var(--ink-dim);
}

.stat span:last-child { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }

.trigger-note {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
  margin: -8px 0 0;
  min-height: 15px;
}

.card-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.trigger-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--glass-line);
  padding: 7px 13px;
  border-radius: 20px;
  cursor: pointer;
  margin-right: auto;
}

.trigger-btn:hover { background: rgba(255,255,255,0.18); }
.trigger-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.card-foot a {
  font-size: 12.5px;
  font-weight: 700;
  color: #0a0a14;
  text-decoration: none;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  padding: 7px 14px;
  border-radius: 20px;
}

.card.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 600;
  border-style: dashed;
  background: rgba(255,255,255,0.05);
  min-height: 140px;
}
