:root {
  --brand: #5c41f5;
  --deep: #100a55;
  --paper: #ffffff;
  --shell: 1440px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --display-en: "Plus Jakarta Sans", var(--font);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: #211a3d;
  background: linear-gradient(
    120deg,
    rgb(206, 204, 255) 0%,
    rgb(240, 245, 255) 33%,
    #fff 66%
  );
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* 避免被当成缩放位图二次插值；清晰度主要靠 2x 素材 */
  image-rendering: auto;
}

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

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

.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(92, 65, 245, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 5px;
}

.brand span {
  font-family: var(--display-en);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--deep);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
}

.nav-pill.is-active {
  background: var(--brand);
  color: #fff;
}

.hero {
  /* Figma hero 1920×842，顶栏 68px 已由 sticky HTML header 承担；用负 margin 裁顶，避免 object-fit 再采样发糊 */
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(196, 217, 251, 1) 0%,
    rgba(221, 214, 254, 1) 12%,
    rgba(252, 253, 255, 1) 35%
  );
}

.hero-art {
  width: 100%;
  height: auto;
  /* margin-% 相对自身 width：68/1920 ≈ 顶栏在图中的高度 */
  margin-top: calc(-100% * 68 / 1920);
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.block {
  padding: clamp(40px, 5vw, 72px) 0;
}

.block-tight {
  padding-top: 0;
}

.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
}

.shot img {
  width: 100%;
}

.cta {
  margin-top: clamp(24px, 4vw, 48px);
}

.cta-art {
  width: 100%;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .hero-art {
    animation: none;
  }
}

@media (max-width: 640px) {
  .brand span {
    font-size: 18px;
  }

  .shot {
    border-radius: 8px;
  }

  .block {
    padding: 28px 0;
  }
}
