/* ============================================================
   DESIGN TOKENS — Light SaaS Theme
   ============================================================ */
:root {
  --bg-page:        #f7f8fb;
  --bg-surface:     #ffffff;
  --bg-subtle:      #f1f3f8;
  --bg-hover:       #f5f6fa;

  --border-soft:    #eaecef;
  --border-default: #e1e4ea;
  --border-strong:  #cdd2dc;

  --text-primary:   #0b1020;
  --text-secondary: #4a5269;
  --text-tertiary:  #8a93a6;
  --text-placeholder:#b4bbc9;

  --brand-50:  #eef1ff;
  --brand-100: #e0e6ff;
  --brand-200: #c3cdff;
  --brand-300: #9aa8ff;
  --brand-400: #7381ff;
  --brand-500: #4f46e5;
  --brand-600: #4338ca;
  --brand-700: #3730a3;
  --brand-800: #2b247d;

  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --info:    #3b82f6;

  --grad-brand:   linear-gradient(135deg, #6366f1 0%, #4f46e5 40%, #4338ca 100%);
  --grad-metal:   linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #4f46e5 100%);
  --grad-sheen:   linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  --grad-mesh:    radial-gradient(at 12% 0%, #e0e6ff 0, transparent 45%),
                  radial-gradient(at 100% 20%, #fde68a22 0, transparent 50%),
                  radial-gradient(at 0% 100%, #99f6e422 0, transparent 40%);

  --shadow-xs:  0 1px 2px rgba(15,23,42,.04);
  --shadow-sm:  0 1px 2px rgba(15,23,42,.04), 0 1px 6px rgba(15,23,42,.04);
  --shadow-md:  0 4px 6px -1px rgba(15,23,42,.06), 0 2px 4px -2px rgba(15,23,42,.04);
  --shadow-lg:  0 12px 24px -8px rgba(15,23,42,.10), 0 4px 8px -4px rgba(15,23,42,.06);
  --shadow-xl:  0 24px 48px -12px rgba(15,23,42,.14), 0 8px 16px -4px rgba(15,23,42,.08);
  --shadow-brand: 0 10px 30px -10px rgba(79,70,229,.45);
  --shadow-glow:  0 0 0 1px rgba(79,70,229,.12), 0 8px 24px -8px rgba(79,70,229,.32);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 0 rgba(15,23,42,.04);

  --r-xs:  6px; --r-sm:  8px; --r-md:  12px;
  --r-lg:  16px; --r-full:999px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: "Bricolage Grotesque", "Noto Sans SC", system-ui, sans-serif;
  --font-ui:      "Plus Jakarta Sans", "Noto Sans SC", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }

code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
code.inline {
  display: inline-block;
  padding: 1px 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

::selection { background: var(--brand-100); color: var(--brand-800); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* 工具类 */
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.muted, .text-muted { color: var(--text-tertiary); }
.text-secondary { color: var(--text-secondary); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

input, select, textarea, button { font-family: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }

/* Logo 方块 */
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--grad-metal);
  background-size: 200% 200%;
  animation: metal-shift 6s ease-in-out infinite;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow-brand);
  position: relative; overflow: hidden;
  margin-right: 10px;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-sheen);
  transform: translateX(-120%) skewX(-20deg);
  animation: sheen 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes metal-shift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
@keyframes sheen {
  0% { transform: translateX(-120%) skewX(-20deg); }
  55%,100% { transform: translateX(220%) skewX(-20deg); }
}
