/* ═══════════════════════════════════════════
   Cube Studio Gateway — Shared Theme
   ═══════════════════════════════════════════ */

/* Enable cross-document fade transition on internal navigation */
@view-transition { navigation: auto; }

:root {
  --bg: #09090b;
  --bg-card: #18181b;
  --bg-card-alt: #1e1e24;
  --border: #27272a;
  --text: #fafafa;
  --text-secondary: #d1d5db;
  --muted: #a1a1aa;
  --accent: #6366f1;
  --accent-glow: rgba(99,102,241,0.25);
  --gold: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --radius: 12px;
  --radius-lg: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-w: 640px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  min-height: 100%;
}

body {
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* ─── Animated Background Orbs ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(99,102,241,0.10), transparent 50%),
    radial-gradient(450px circle at 85% 80%, rgba(99,102,241,0.07), transparent 50%),
    radial-gradient(250px circle at 50% 50%, rgba(245,158,11,0.05), transparent 50%);
  animation: bgOrb 16s ease-in-out infinite alternate;
}
@keyframes bgOrb {
  0%   { transform: translate(0, 0) scale(1);   opacity: 0.6; }
  50%  { transform: translate(-20px, 15px) scale(1.05); opacity: 1; }
  100% { transform: translate(15px, -10px) scale(1);  opacity: 0.7; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Container ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ─── Card ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ─── Typography ─── */
h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }

p { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.7; }
p.zh { font-size: 12px; color: var(--muted); margin-bottom: 16px; }

/* ─── Divider ─── */
hr { border: none; border-top: 1px solid var(--border); }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ─── Button base ─── */
.btn-primary {
  display: inline-block;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99,102,241,0.4);
}

/* ─── Footer ─── */
.footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.footer a { color: var(--accent); }
.footer a:hover { text-decoration: underline; }
.footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; }
