/* DeskGo 官网。视觉约定见 docs/官网设计系统.md */

/* chrome：顶栏、按钮、页脚。粒子场见 field.css */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}
main, .foot { position: relative; z-index: 1; }

html.is-intro,
html.is-intro body {
  overflow: hidden;
}
html.is-intro main,
html.is-intro .foot {
  opacity: 0;
  visibility: hidden;
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  transform: translateZ(0);
  backface-visibility: hidden;
}
body { padding-top: var(--top-h); }
.top-row,
.rail {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.top-row {
  position: relative;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-mark {
  display: block;
  width: 26px;
  height: 26px;
  flex: none;
  object-fit: contain;
  overflow: hidden;
  border-radius: 6px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 2px;
  padding-right: clamp(28px, 5vw, 80px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.nav a {
  flex: none;
  padding: 10px 8px 8px;
  border-radius: 0;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
}
.nav a:hover { color: var(--ink); }
.nav a.is-now {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 -2px 0 currentColor;
}
.nav-price { display: none; }
.nav-cta { display: flex; align-items: center; gap: 6px; flex: none; }
.price-link {
  flex: none;
  padding: 10px 8px 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
}
.price-link:hover { color: var(--ink); }
.price-link.is-now {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 currentColor;
}
.theme-toggle {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.theme-toggle:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.theme-toggle svg { width: 15px; height: 15px; pointer-events: none; }
.theme-toggle .theme-icon-moon { display: block; }
.theme-toggle .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
.nav-toggle {
  display: none;
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease), color 0.22s var(--ease);
}
.btn:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }
.btn-ink, .btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn-ink:hover,
.btn-primary:hover {
  background: color-mix(in srgb, var(--ink) 82%, var(--paper));
  border-color: color-mix(in srgb, var(--ink) 82%, var(--paper));
}
.btn-ink:disabled:hover,
.btn-primary:disabled:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.nav-cta .btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.btn-cut {
  background: var(--cut);
  border-color: var(--cut);
  color: #fff;
}
.btn-cut:hover {
  border-color: color-mix(in srgb, var(--cut) 88%, #000);
  background: color-mix(in srgb, var(--cut) 88%, #000);
}
.btn-cut:disabled:hover {
  border-color: var(--cut);
  background: var(--cut);
}
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }

.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.foot-row { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a:hover { color: var(--ink); }

@keyframes lamp { 50% { opacity: 0.35; } }
@keyframes packet { to { transform: translateX(350%); } }
