/* 補充 Tailwind 難以處理的通用樣式 */
:root {
  --color-page-from: #ffffff;
  --color-page-via: #f8fafc;
  --color-page-to: #e2e8f0;
  --color-overlay: rgba(255, 255, 255, 0.8);
  --color-surface: #ffffff;
  --color-surface-muted: #f1f5f9;
  --color-section-from: rgba(248, 250, 252, 0.92);
  --color-section-via: rgba(248, 250, 252, 0.6);
  --color-section-to: rgba(248, 250, 252, 0.38);
  --color-border-subtle: rgba(15, 23, 42, 0.12);
  --color-border-strong: rgba(15, 23, 42, 0.22);
  --color-shadow-soft: rgba(15, 23, 42, 0.08);
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #64748b;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --color-page-from: #020617;
  --color-page-via: rgba(2, 8, 23, 0.88);
  --color-page-to: #0f172a;
  --color-overlay: rgba(2, 6, 23, 0.72);
  --color-surface: rgba(15, 23, 42, 0.75);
  --color-surface-muted: rgba(15, 23, 42, 0.55);
  --color-section-from: rgba(15, 23, 42, 0.75);
  --color-section-via: rgba(15, 23, 42, 0.6);
  --color-section-to: rgba(2, 8, 23, 0.85);
  --color-border-subtle: rgba(148, 163, 184, 0.28);
  --color-border-strong: rgba(148, 163, 184, 0.5);
  --color-shadow-soft: rgba(43, 89, 255, 0.28);
  --color-text-primary: #f8fafc;
  --color-text-secondary: rgba(226, 232, 240, 0.78);
  --color-text-tertiary: rgba(148, 163, 184, 0.65);
  color-scheme: dark;
}

.confetti-canvas {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #2B59FF;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: transform 0.2s ease, left 0.2s ease;
}

.skip-link:focus {
  left: 1rem;
  transform: translateY(1rem);
}

[data-subscribe-trigger] {
  color: #0f172a !important;
}

.dark [data-subscribe-trigger] {
  color: #f8fafc !important;
}

[data-subscribe-button] {
  color: #0f172a !important;
}

.dark [data-subscribe-button] {
  color: #f8fafc !important;
}
