/* 高对比卡片主题 — 内联为准；须在 :root 与默认组件样式之后 */
html[data-theme="card"] {
  --bg: #080b10;
  --card: #141c2b;
  --border: #3d4f6a;
  --text: #f4f7fb;
  --muted: #9aadc8;
  --accent: #60a5fa;
  --up: #34d399;
  --down: #fb7185;
  --warn: #fbbf24;
  color-scheme: dark;
}
html[data-theme="card"] body {
  margin-left: auto;
  margin-right: auto;
  background:
    radial-gradient(ellipse 70% 45% at 15% 0%, rgba(96, 165, 250, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(52, 211, 153, 0.08), transparent),
    var(--bg);
  padding-top: 1.15rem;
}
html[data-theme="card"] h1 {
  letter-spacing: 0.02em;
}
html[data-theme="card"] .summary {
  gap: 0.7rem;
}
html[data-theme="card"] .cell {
  border-radius: 14px;
  border-width: 1.5px;
  padding: 0.9rem 1rem;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.35);
  background: linear-gradient(160deg, #1a2538 0%, #121a28 100%);
}
html[data-theme="card"] .cell .val {
  font-size: 1.22rem;
}
html[data-theme="card"] section {
  border-radius: 14px;
  border-width: 1.5px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, #172033 0%, #121a28 100%);
}
html[data-theme="card"] button {
  background: #243554;
  border-radius: 10px;
  color: var(--text);
  border-color: var(--border);
}
html[data-theme="card"] button.primary {
  background: linear-gradient(180deg, #3b6fb0, #2a5088);
  border-color: #60a5fa;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.25);
  color: #fff;
}
html[data-theme="card"] button.danger {
  background: #3a1f28;
  border-color: #9f3a48;
  color: #fda4af;
}
html[data-theme="card"] th {
  background: #0e1624;
  border-bottom-color: #3d4f6a;
  color: var(--muted);
}
html[data-theme="card"] input {
  background: #0a101a;
  border-color: #3d4f6a;
  border-radius: 8px;
  color: var(--text);
}
html[data-theme="card"] input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
html[data-theme="card"] .theme-bar select {
  background: #0a101a;
  border-color: #3d4f6a;
  color: var(--text);
}
