/*
  GBMS site kit · the home-page parameter table as CSS variables (saas-frontend-standard 「〇·一、首页统一参数表」), plus
  the few base classes every block shares. Import once in the host (main.ts or the home page): every sdk/vue/site
  component reads these.
  🔴 The product sets only the brand colour (`--gs-brand`). Every other value, gradient ends and the dark download band
  included, is the standard's or derived from the brand here; scripts/kit-guard (saas-frontend-standard 〇·二 3) fails a
  product release that redefines one. 🔴 Layers (`--gs-z-*`, 〇·二 9) are fixed too, header < float < popover < dialog
  < dialog over a dialog < support window < toast, and every floating kit is teleported to <body>, so a host's stacking
  context can never cover it; the kits carry the same numbers as fallbacks (workbench pages may not load this file).
  Vendored byte for byte (README.md).
*/
:where(:root) {
  --gs-brand: #2563eb;
  --gs-brand-2: color-mix(in srgb, var(--gs-brand) 72%, #fff);
  --gs-brand-soft: color-mix(in srgb, var(--gs-brand) 7%, #fff);
  --gs-brand-ring: color-mix(in srgb, var(--gs-brand) 28%, #fff);
  --gs-brand-glow: color-mix(in srgb, var(--gs-brand) 45%, transparent);

  --gs-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --gs-font-num: "GS Num", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --gs-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gs-ink: #0f172a;
  --gs-ink-2: #475569;
  --gs-text: #475569;
  --gs-muted: #64748b;
  --gs-faint: #94a3b8;
  --gs-note: #64748b;
  --gs-note-faint: #64748b;
  --gs-note-dark: rgba(255, 255, 255, 0.42);
  --gs-line: #e2e8f0;
  --gs-line-soft: #f1f5f9;
  --gs-bg: #fff;
  --gs-bg-soft: #f8fafc;
  --gs-ok: #16a34a;
  --gs-warn: #d97706;
  --gs-gold: #c8901a;
  --gs-gold-soft: #fdf6e3;

  --gs-max: 1170px;
  --gs-content: calc(var(--gs-max) - 48px);
  --gs-header-h: 80px;
  --gs-header-bg: rgba(255, 255, 255, 0.92);
  --gs-header-line: rgba(226, 232, 240, 0.8);
  --gs-header-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px -6px rgba(15, 23, 42, 0.12);
  --gs-nav-size: 15px;
  --gs-nav-pad: 16px;
  --gs-nav-color: #475569;
  --gs-nav-caret: #94a3b8;

  --gs-gap-hero: 80px;
  --gs-gap-section: 96px;

  --gs-r-sm: 10px;
  --gs-r: 12px;
  --gs-r-md: 16px;
  --gs-r-lg: 20px;
  --gs-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px -6px rgba(15, 23, 42, 0.12);
  --gs-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px -6px rgba(15, 23, 42, 0.12);
  --gs-shadow-lg: 0 12px 24px -12px rgba(15, 23, 42, 0.25);
  --gs-shadow-xl: 0 24px 48px -20px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(15, 23, 42, 0.05);
  /* 〇·四: the four shadows (card · raise on hover · float for dropdowns and menus · dialog) */
  --gs-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px -6px rgba(15, 23, 42, 0.12);
  --gs-shadow-raise: 0 12px 24px -12px rgba(15, 23, 42, 0.25);
  --gs-shadow-float: 0 24px 48px -20px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(15, 23, 42, 0.05);
  --gs-shadow-dialog: 0 40px 80px -30px rgba(15, 23, 42, 0.45);

  --gs-deploy: #2563eb;
  --gs-deploy-glow: rgba(59, 130, 246, 0.3);
  --gs-deploy-soft: #eff6ff;
  --gs-dealer: #9333ea;
  --gs-dealer-glow: rgba(168, 85, 247, 0.3);
  --gs-dealer-soft: #faf5ff;

  --gs-mac-1: #1e293b;
  --gs-mac-2: #0b1220;
  --gs-band-bg: color-mix(in srgb, var(--gs-brand) 18%, #0b1220);
  --gs-band-bg-2: color-mix(in srgb, var(--gs-brand) 35%, #0b1220);

  --gs-stale-bg: #fffbe6;
  --gs-stale-line: #f0d180;
  --gs-stale-ink: #5c4400;
  /* install dialog (install/InstallDialog.vue) */
  --gs-ok-soft: color-mix(in srgb, var(--gs-ok) 10%, #fff);
  --gs-warn-soft: color-mix(in srgb, var(--gs-warn) 12%, #fff);
  --gs-mask: rgba(15, 23, 42, 0.45);
  /* Bottom-right corner slot for kit cards (PushOptInCard): above the support pill (right / bottom 24, 52 tall, 4 px
     ring) with a 12 px gap. Fixed, not a product knob; a host's own corner cards may read it to line up. */
  --gs-corner-right: 24px;
  --gs-corner-bottom: 88px;

  --gs-z-header: 2000;
  --gs-z-float: 2500;
  --gs-z-popover: 3000;
  --gs-z-modal: 3100;
  --gs-z-modal-over: 3200;
  --gs-z-support: 3300;
  --gs-z-toast: 3400;
}
@media (max-width: 1440px) and (min-width: 1025px) {
  :where(:root) { --gs-max: 1080px; }
}
@media (max-width: 1366px) and (min-width: 1025px) {
  :where(:root) { --gs-max: 1040px; }
}
@media (max-width: 768px) {
  :where(:root) { --gs-header-h: 60px; --gs-gap-hero: 48px; --gs-gap-section: 64px; }
}
/* 🔴 Short desktop windows (1280 × 600): with a disclaimer line the 80 px gap pushed the hero's download buttons
   below the fold (11-18); kit-guard ④ home needs gs-dl-windows on the first screen */
@media (min-width: 769px) and (max-height: 640px) {
  :where(:root) { --gs-gap-hero: 40px; }
}

/* ---- base classes ---- */
.gs-root, .gs-root * { box-sizing: border-box; }
.gs-root { font-family: var(--gs-font, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif); color: var(--gs-ink); -webkit-font-smoothing: antialiased; text-wrap: pretty; }
.gs-root a { text-decoration: none; }
.gs-wrap { width: min(var(--gs-content), calc(100% - 32px)); margin: 0 auto; }
.gs-sec { padding: var(--gs-gap-section) 0 0; }
.gs-h2 { margin: 0; font-size: 36px; line-height: 1.3; font-weight: 800; color: var(--gs-ink); text-align: center; letter-spacing: -0.01em; }
.gs-sub { margin: 12px auto 0; max-width: 720px; font-size: 16px; line-height: 1.7; color: var(--gs-muted); text-align: center; }
.gs-note { font-size: 12px; line-height: 1.5; color: var(--gs-note); }
.gs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--gs-r-sm); font: 600 15px/1 var(--gs-font, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif); cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s; white-space: nowrap;
}
.gs-btn--primary { background: var(--gs-brand); color: #fff; }
.gs-btn--primary:hover { background: color-mix(in srgb, var(--gs-brand) 88%, #000); color: #fff; }
.gs-btn--ghost { background: #fff; color: var(--gs-brand); border-color: var(--gs-brand-ring); }
.gs-btn--ghost:hover { border-color: var(--gs-brand); background: var(--gs-brand-soft); }
.gs-ico { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.125em; }
.gs-spin {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: gs-spin 0.7s linear infinite; flex: none;
}
@keyframes gs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .gs-root *, .gs-root *::before, .gs-root *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
