/* ==========================================================================
   SguanFOC 官网 v1.0 — 基础设计系统
   纯原生 CSS，无外部依赖
   ========================================================================== */

:root {
  --bg: #f4f6fb;
  --bg-soft: #eef2f8;
  --bg-deep: #e8edf6;
  --ink: #121722;
  --ink-soft: #2b3342;
  --muted: #647087;
  --muted-2: #8a94a6;
  --line: rgba(18, 23, 34, 0.09);
  --line-strong: rgba(18, 23, 34, 0.16);
  --white: #ffffff;
  --blue: #1f6bff;
  --blue-2: #4b9bff;
  --blue-soft: rgba(31, 107, 255, 0.1);
  --cyan: #16c5d8;
  --violet: #7357ff;
  --amber: #e89a16;
  --green: #0ea37a;
  --red: #e5484d;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --shadow-sm: 0 2px 10px rgba(20, 30, 60, 0.05);
  --shadow-md: 0 18px 50px rgba(20, 30, 60, 0.09);
  --shadow-lg: 0 34px 90px rgba(20, 30, 60, 0.14);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-display: "Bahnschrift", "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 23, 34, 0.033) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 23, 34, 0.033) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(31, 107, 255, 0.2);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(18, 23, 34, 0.035);
}

::-webkit-scrollbar-thumb {
  background: rgba(18, 23, 34, 0.18);
  border-radius: 99px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(18, 23, 34, 0.3);
}

/* --------------------------------------------------------------------------
   背景氛围
   -------------------------------------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

.ambient-blob.b1 {
  width: 720px;
  height: 720px;
  top: -260px;
  right: -180px;
  background: radial-gradient(circle, rgba(31, 107, 255, 0.24), transparent 66%);
}

.ambient-blob.b2 {
  width: 560px;
  height: 560px;
  top: 36%;
  left: -260px;
  background: radial-gradient(circle, rgba(22, 197, 216, 0.16), transparent 66%);
}

.ambient-blob.b3 {
  width: 520px;
  height: 520px;
  bottom: -220px;
  right: 8%;
  background: radial-gradient(circle, rgba(115, 87, 255, 0.12), transparent 66%);
}

/* --------------------------------------------------------------------------
   基础排版 / 布局
   -------------------------------------------------------------------------- */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.container-wide {
  width: min(1440px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 100px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 46px;
}

.section-head-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.eyebrow.is-muted {
  color: var(--muted);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.55rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-title .thin {
  color: var(--muted-2);
  font-weight: 400;
}

.section-lede {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 6.3rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.grad-text {
  background: linear-gradient(102deg, var(--blue) 0%, #3f8dff 42%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--muted);
}

.text-balance {
  text-wrap: balance;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   顶部品牌栏
   -------------------------------------------------------------------------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  padding: 18px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.topbar.is-scrolled {
  padding: 10px 0;
  background: rgba(244, 246, 251, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(20, 30, 60, 0.03);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(18, 23, 34, 0.18);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.brand:hover .brand-mark {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 12px 26px rgba(31, 107, 255, 0.24);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-text small {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

.version-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(14, 163, 122, 0.1);
}

.version-pill.is-dev {
  border-color: rgba(232, 154, 22, 0.26);
  background: rgba(255, 250, 235, 0.72);
  color: #8a5b0d;
}

.version-pill.is-dev i {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(232, 154, 22, 0.12);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.52);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.ghost-btn svg {
  width: 16px;
  height: 16px;
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(31, 107, 255, 0.25);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   按钮 / 链接
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s var(--ease), translate 0.25s var(--ease), background 0.35s, border-color 0.35s, box-shadow 0.35s, color 0.35s;
}

.magnetic {
  translate: var(--mag-x, 0px) var(--mag-y, 0px);
}

.parallax {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 34px rgba(18, 23, 34, 0.18);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.12) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn-primary:hover {
  background: var(--blue);
  box-shadow: 0 18px 40px rgba(31, 107, 255, 0.3);
  transform: translateY(-2px);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.56);
  border-color: var(--line-strong);
  color: var(--ink);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  background: #fff;
  border-color: rgba(31, 107, 255, 0.28);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 34px rgba(31, 107, 255, 0.25);
}

.btn-blue:hover {
  background: #0f5cf0;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(31, 107, 255, 0.34);
}

.btn-sm {
  min-height: 42px;
  padding: 0 17px;
  font-size: 0.82rem;
}

.btn .arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--blue);
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover svg {
  transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   玻璃卡片 / 光斑 / 3D 倾斜 / 边缘流光
   -------------------------------------------------------------------------- */

.glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-quiet {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  box-shadow: var(--shadow-sm);
}

.spot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 107, 255, 0.14), transparent 68%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.spot:hover::before {
  opacity: 1;
}

.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(190px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 107, 255, 0.7), transparent 58%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.spot:hover::after {
  opacity: 1;
}

.spot > * {
  position: relative;
  z-index: 1;
}

@property --beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.beam {
  position: relative;
  isolation: isolate;
}

.beam-line {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg 268deg,
    rgba(31, 107, 255, 0) 280deg,
    rgba(31, 107, 255, 0.75) 316deg,
    rgba(22, 197, 216, 0.92) 342deg,
    rgba(31, 107, 255, 0) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: none;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.beam:hover .beam-line {
  opacity: 1;
  animation: beam-spin 3.8s linear infinite;
}

@keyframes beam-spin {
  to {
    --beam-angle: 360deg;
  }
}

.tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.4s;
}

.tilt:hover {
  --lift: -5px;
  box-shadow: var(--shadow-lg);
}

.tilt.is-tilting {
  will-change: transform;
  transition: transform 0.09s linear, box-shadow 0.55s var(--ease);
}

/* --------------------------------------------------------------------------
   底部玻璃 Dock
   -------------------------------------------------------------------------- */

.dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  backdrop-filter: blur(26px) saturate(165%);
  box-shadow: 0 22px 60px rgba(20, 30, 60, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateX(-50%);
  transition: opacity 0.3s, transform 0.3s;
}

.dock::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(31, 107, 255, 0.2), transparent 34%, transparent 66%, rgba(22, 197, 216, 0.16));
  opacity: 0.55;
  pointer-events: none;
}

.dock-item {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  color: var(--muted);
  transform-origin: bottom center;
  transition: transform 0.34s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
}

.dock-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.34s var(--ease);
}

.dock-item:hover,
.dock-item.is-near {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(20, 30, 60, 0.12);
  transform: translateY(-7px) scale(1.12);
}

.dock-item.is-near {
  transform: translateY(-3px) scale(1.04);
}

.dock-item.is-near:hover {
  transform: translateY(-7px) scale(1.12);
}

.dock-item.is-active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(18, 23, 34, 0.28);
}

.dock-item.is-active:hover {
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(31, 107, 255, 0.34);
}

.dock-label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.dock-item:hover .dock-label,
.dock-item:focus-visible .dock-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   滚动进度 / 页面过渡
   -------------------------------------------------------------------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 160;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 78%, rgba(31, 107, 255, 0.16), transparent 46%),
    radial-gradient(circle at 50% 28%, rgba(22, 197, 216, 0.12), transparent 56%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fc 100%);
  transform: translateY(100%);
  transition: transform 0.56s cubic-bezier(0.7, 0, 0.2, 1);
  pointer-events: none;
  visibility: hidden;
}

.page-transition.is-active {
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.pt-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s 0.15s, transform 0.3s 0.15s;
}

.page-transition.is-active .pt-mark {
  opacity: 1;
  transform: translateY(0);
}

.pt-mark img {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  box-shadow: 0 18px 40px rgba(20, 30, 60, 0.18);
}

.pt-mark span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   入场 / 滚动 Reveal
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .stagger > * {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.75s var(--ease-out), translate 0.75s var(--ease-out);
}

.js .stagger.is-visible > * {
  opacity: 1;
  translate: 0 0;
}

.js .stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.js .stagger.is-visible > *:nth-child(2) { transition-delay: 0.09s; }
.js .stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.js .stagger.is-visible > *:nth-child(4) { transition-delay: 0.23s; }
.js .stagger.is-visible > *:nth-child(5) { transition-delay: 0.3s; }
.js .stagger.is-visible > *:nth-child(6) { transition-delay: 0.37s; }
.js .stagger.is-visible > *:nth-child(7) { transition-delay: 0.44s; }
.js .stagger.is-visible > *:nth-child(8) { transition-delay: 0.51s; }

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

main {
  animation: page-in 0.55s var(--ease-out) both;
}

/* --------------------------------------------------------------------------
   Chips / 标签
   -------------------------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
}

.chip-blue {
  border-color: rgba(31, 107, 255, 0.16);
  background: rgba(31, 107, 255, 0.07);
  color: var(--blue);
}

.chip-green {
  border-color: rgba(14, 163, 122, 0.16);
  background: rgba(14, 163, 122, 0.07);
  color: var(--green);
}

.chip-amber {
  border-color: rgba(232, 154, 22, 0.18);
  background: rgba(232, 154, 22, 0.08);
  color: #a96a08;
}

.chip-violet {
  border-color: rgba(115, 87, 255, 0.18);
  background: rgba(115, 87, 255, 0.08);
  color: var(--violet);
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   统计数字
   -------------------------------------------------------------------------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stat {
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.stat-num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-num em {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.stat-num .stat-plus {
  font-size: 1.35rem;
  line-height: 1;
  margin-left: 1px;
}

.stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   代码块 / 复制
   -------------------------------------------------------------------------- */

.code-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: #0d1420;
  box-shadow: 0 24px 60px rgba(6, 12, 28, 0.28);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(226, 238, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.code-dots {
  display: flex;
  gap: 5px;
}

.code-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.code-dots i:first-child { background: #ff6b6b; }
.code-dots i:nth-child(2) { background: #ffd166; }
.code-dots i:nth-child(3) { background: #4ade80; }

.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: rgba(226, 238, 255, 0.7);
  font-size: 0.6rem;
  transition: background 0.25s, color 0.25s;
}

.code-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.code-copy svg {
  width: 12px;
  height: 12px;
}

.code-body {
  margin: 0;
  padding: 20px 20px 24px;
  overflow-x: auto;
  color: #dce8ff;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  line-height: 1.85;
  tab-size: 2;
}

.code-body .c { color: #63758f; }
.code-body .k { color: #7fb4ff; }
.code-body .s { color: #7ee0c1; }
.code-body .n { color: #ffc978; }
.code-body .f { color: #c8b6ff; }

/* --------------------------------------------------------------------------
   展开详情层（原位放大）
   -------------------------------------------------------------------------- */

.expand-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  pointer-events: none;
}

.expand-overlay.is-open {
  pointer-events: auto;
}

.expand-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 24, 0.34);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.expand-overlay.is-open .expand-backdrop {
  opacity: 1;
}

.expand-panel {
  position: fixed;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: linear-gradient(150deg, #ffffff 0%, #f7faff 60%, #eef4ff 100%);
  box-shadow: 0 40px 120px rgba(10, 20, 50, 0.3), inset 0 1px 0 #fff;
  will-change: top, left, width, height;
}

.expand-panel::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 107, 255, 0.16), transparent 66%);
  pointer-events: none;
}

.expand-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  padding: 46px 48px 42px;
  overscroll-behavior: contain;
}

.expand-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.25s, transform 0.25s, color 0.25s;
}

.expand-close:hover {
  background: var(--ink);
  color: #fff;
  transform: rotate(90deg);
}

.expand-close svg {
  width: 17px;
  height: 17px;
}

.expand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.expand-title {
  max-width: 560px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.expand-text {
  margin-top: 18px;
  max-width: 620px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.9;
}

.expand-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.expand-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.expand-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 107, 255, 0.1);
}

.expand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.expand-note {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px dashed rgba(31, 107, 255, 0.24);
  border-radius: 12px;
  background: rgba(31, 107, 255, 0.05);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.expand-image {
  width: 100%;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   图片灯箱
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 4vw;
  background: rgba(7, 12, 20, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 1100px;
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  background: #fff;
}

.lightbox figcaption {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.25s, transform 0.25s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  padding: 64px 0 124px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(232, 237, 246, 0.72));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 0.8fr 0.8fr 1.2fr;
  gap: 36px;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 330px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  width: fit-content;
  color: var(--ink-soft);
  font-size: 0.84rem;
  transition: color 0.25s, transform 0.25s;
}

.footer-links a:hover {
  color: var(--blue);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-contact a {
  color: var(--ink-soft);
  transition: color 0.25s;
}

.footer-contact a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.72rem;
}

.footer-bottom .mono {
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   通用网格
   -------------------------------------------------------------------------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  background: rgba(18, 23, 34, 0.92);
  box-shadow: var(--shadow-md);
  color: #fff;
  font-size: 0.78rem;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }

  .bento .span-3 {
    grid-column: span 6;
  }

  .bento .span-4 {
    grid-column: span 6;
  }

  .bento .span-5,
  .bento .span-7 {
    grid-column: span 12;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(var(--container), calc(100% - 36px));
  }

  .section {
    padding: 80px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 34px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :last-child {
    grid-column: auto;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 32px);
  }

  .topbar {
    padding: 14px 0;
  }

  .topbar.is-scrolled {
    padding: 8px 0;
  }

  .version-pill {
    display: none;
  }

  .ghost-btn {
    min-height: 36px;
    padding: 0 12px;
  }

  .ghost-btn span {
    display: none;
  }

  .brand-text small {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .section-title {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .bento .span-3,
  .bento .span-4,
  .bento .span-5,
  .bento .span-6,
  .bento .span-7,
  .bento .span-8 {
    grid-column: span 12;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 20px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .dock {
    bottom: 14px;
    width: calc(100% - 28px);
    max-width: 420px;
    justify-content: space-around;
    padding: 7px;
    border-radius: 23px;
  }

  .dock-item {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .dock-item svg {
    width: 21px;
    height: 21px;
  }

  .dock-item:hover,
  .dock-item.is-near {
    transform: translateY(-4px) scale(1.06);
  }

  .dock-item.is-active .dock-label {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .toast-stack {
    right: 14px;
    bottom: 88px;
  }

  .expand-inner {
    padding: 38px 24px 30px;
  }

  .expand-close {
    top: 12px;
    right: 12px;
  }

  .expand-title {
    font-size: 1.7rem;
  }

  .site-footer {
    padding-bottom: 110px;
  }
}

@media (max-width: 420px) {
  .brand-text strong {
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   减少动态效果
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal,
  .js .stagger > * {
    opacity: 1;
    transform: none;
    translate: none;
  }

  .tilt {
    transform: none !important;
  }

  .beam-line {
    animation: none;
  }
}
