/* ═══════════════════════════════════════════════════════
   usage-checker — 全站主题
   风格：dark-first / indigo accent / glassmorphism
   ═══════════════════════════════════════════════════════ */

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

:root {
  --bg-deep:       #06080f;
  --bg-card:       rgba(255,255,255,0.045);
  --bg-input:      rgba(0,0,0,0.25);
  --border:        rgba(255,255,255,0.08);
  --border-lit:    rgba(255,255,255,0.14);
  --text-1:        #e8eaf0;
  --text-2:        #8b90a0;
  --text-3:        #555a6e;
  --accent:        #818cf8;
  --accent-dim:    rgba(129,140,248,0.12);
  --accent-glow:   rgba(129,140,248,0.08);
  --green:         #34d399;
  --green-dim:     rgba(52,211,153,0.12);
  --red:           #f87171;
  --red-dim:       rgba(248,113,113,0.10);
  --orange:        #fb923c;
  --orange-dim:    rgba(251,146,60,0.08);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --radius-xl:     20px;
  --font-display:  'Space Grotesk', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:     'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono:          'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --shadow-card:   0 0 0 1px rgba(255,255,255,0.03) inset, 0 4px 24px rgba(0,0,0,0.2);
  --shadow-glow:   0 0 40px rgba(129,140,248,0.06);
  --ease-out:      cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg-deep); }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-1);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  padding: 40px 16px 64px;
}
::selection { background: var(--accent-dim); color: var(--accent); }

/* 噪点氛围层 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* ── 顶部光晕 ── */
.glow {
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── 布局 ── */
.wrap { max-width: 560px; margin: 0 auto; }
header {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
  animation: cardIn .5s var(--ease-out) both;
}
h1 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; letter-spacing: -0.03em;
}
.sub { color: var(--text-2); font-size: 13px; }
.spacer { flex: 1; }
.back { color: var(--text-2); font-size: 13px; text-decoration: none; transition: color .15s ease; }
.back:hover { color: var(--text-1); }

/* ── 卡片（玻璃拟态）── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  display: flex; flex-direction: column; gap: 16px;
}
.card + .card { margin-top: 16px; }
a.card { color: inherit; text-decoration: none; cursor: pointer; transition: border-color .2s ease, transform .2s var(--ease-out); }
a.card:hover { border-color: rgba(129,140,248,0.35); transform: translateY(-2px); }
main > .card:nth-child(1) { animation: cardIn .5s var(--ease-out) both; }
main > .card:nth-child(2) { animation: cardIn .5s var(--ease-out) .08s both; }
main > .card:nth-child(3) { animation: cardIn .5s var(--ease-out) .16s both; }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.provider {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
}
.status {
  font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600;
  background: var(--accent-dim); color: var(--text-2); white-space: nowrap;
}
.status.ok { background: var(--green-dim); color: var(--green); }
.status.warn { background: var(--orange-dim); color: var(--orange); }
.status.err { background: var(--red-dim); color: var(--red); }

/* ── 磁贴 ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.tile {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.tlabel { font-size: 11.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.tlabel .tag {
  font-size: 10px; color: var(--orange); background: var(--orange-dim);
  padding: 1px 7px; border-radius: 999px; font-weight: 600;
}
.num {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.num .unit { font-size: 14px; color: var(--text-2); font-weight: 600; margin-left: 2px; }
.num.warn { color: var(--orange); }
.num.err { color: var(--red); }
.bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width .4s ease; }
.bar-fill.warn { background: var(--orange); }
.bar-fill.err { background: var(--red); }
.treset { font-size: 11px; color: var(--text-3); }

/* ── 首页卡片摘要 ── */
.pmeta .pmain { font-size: 14px; }
.pmeta .pmain b { font-weight: 700; font-variant-numeric: tabular-nums; }
.pmeta .psmall { font-size: 11.5px; color: var(--text-2); margin-top: 3px; }
.pmeta .ptime { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.pmeta .arrow {
  float: right; color: var(--text-3); font-size: 15px; line-height: 1.2;
  transition: color .15s ease, transform .2s var(--ease-out);
}
a.card:hover .arrow { color: var(--accent); transform: translateX(2px); }

/* ── 胶囊 ── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px;
  font-size: 11px; color: var(--text-2); background: var(--bg-input);
}

/* ── 表单 ── */
.section-label {
  font-size: 12px; color: var(--text-2); margin: 28px 0 10px; font-weight: 600;
  letter-spacing: .02em;
}
.key-row { display: flex; gap: 8px; }
.key-row input {
  flex: 1; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-1); padding: 10px 12px; font-size: 13px; font-family: var(--mono);
  transition: border-color .15s ease;
}
.key-row input:focus { outline: none; border-color: rgba(129,140,248,0.4); }
.key-row input::placeholder { color: var(--text-3); }
button {
  background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(129,140,248,0.25);
  border-radius: var(--radius); padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
button:hover { background: rgba(129,140,248,0.2); }
button:active { transform: scale(.98); }
button:disabled { opacity: .5; cursor: wait; }

/* ── 提示 ── */
.placeholder { color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
.hint { font-size: 12px; color: var(--text-3); margin-top: 16px; line-height: 1.7; }
.hint a { color: var(--accent); text-decoration: none; }
.hint a:hover { text-decoration: underline; }
.hint b { color: var(--text-2); font-weight: 600; }