/* ==========================================================================
   九月 AI · 基础层
   色彩 / 字体 / 层级 / 通用组件 / 导航 / 光标
   ========================================================================== */

:root {
  --void: #04060f;
  --void-2: #0a0e1f;
  --void-3: #050915;
  --cyan: #6ee7ff;
  --cyan-dim: rgba(110, 231, 255, 0.45);
  --purple: #a78bfa;
  --gold: #ffd28a;
  --magenta: #ff8ad8;
  --paper: #e9dfca;
  --ink: #070707;
  --text: #edf3ff;
  --text-soft: rgba(228, 238, 255, 0.64);
  --text-faint: rgba(220, 233, 255, 0.38);
  --line: rgba(175, 207, 255, 0.13);
  --line-strong: rgba(191, 221, 255, 0.24);
  --glass: rgba(12, 18, 34, 0.42);
  --glass-strong: rgba(10, 16, 31, 0.66);
  --font-sans: "Noto Sans SC", "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-latin: "Cormorant Garamond", "Times New Roman", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(24px, 4.2vw, 76px);
  --radius: 22px;
  --scroll-progress: 0;
  --page-index: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--void);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 72% 18%, rgba(36, 49, 94, 0.24), transparent 62%),
    radial-gradient(ellipse 72% 58% at 14% 86%, rgba(24, 20, 59, 0.22), transparent 65%),
    linear-gradient(160deg, #04060f 0%, #070a18 48%, #04060d 100%);
  pointer-events: none;
}

::selection {
  background: rgba(110, 231, 255, 0.24);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

img,
canvas,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   层级
   -------------------------------------------------------------------------- */
.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  transition: opacity 1.2s var(--ease-out);
}

.page-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 42%, rgba(2, 3, 8, 0.36) 100%),
    linear-gradient(180deg, rgba(2, 3, 8, 0.3), transparent 18%, transparent 82%, rgba(2, 3, 8, 0.42));
}

.pages {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body.is-locked .pages,
body.opening-active .pages {
  overflow: hidden;
}

.page {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint style;
}

.page-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.reveal-canvas {
  position: fixed;
  inset: 0;
  z-index: 24;
  pointer-events: none;
  transition: opacity 0.2s linear;
}

/* 内容入场 */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(2px);
  transition:
    opacity 0.82s var(--ease-out),
    transform 0.88s var(--ease-out),
    filter 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform, filter;
}

.page.is-active .reveal,
body.content-revealed #home .reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

body.opening-active:not(.content-revealed) #home .reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(2px);
}

.page.is-active .reveal.delay-1 {
  --reveal-delay: 0.1s;
}

.page.is-active .reveal.delay-2 {
  --reveal-delay: 0.2s;
}

.delay-1 {
  --reveal-delay: 0.1s;
}

/* 字体排印 */
.serif {
  font-family: var(--font-serif);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--text-soft);
  text-transform: uppercase;
  white-space: nowrap;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: dotPulse 3.2s var(--ease-in-out) infinite;
}

.eyebrow-line {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 200;
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--text);
}

.section-title em {
  font-style: normal;
  font-weight: 300;
  background: linear-gradient(115deg, #fff4df 5%, var(--gold) 42%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 210, 138, 0.18));
}

.lead {
  font-size: clamp(13px, 1.02vw, 15px);
  line-height: 2.15;
  font-weight: 300;
  color: var(--text-soft);
  letter-spacing: 0.035em;
}

.dot {
  display: inline-block;
  margin: 0 0.8em;
  color: var(--cyan);
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 26px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  overflow: hidden;
  transition:
    transform 0.55s var(--ease-out),
    border-color 0.55s var(--ease-out),
    background 0.55s var(--ease-out),
    box-shadow 0.55s var(--ease-out);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  transition: transform 0.55s var(--ease-out);
}

.btn-primary {
  color: #08111c;
  background: linear-gradient(120deg, #f9fdff 0%, #d8f7ff 56%, #f6e9cf 100%);
  border: 1px solid transparent;
  box-shadow: 0 12px 42px rgba(110, 231, 255, 0.14);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, 0.75) 48%, transparent 78%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 52px rgba(110, 231, 255, 0.22);
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-primary:hover svg {
  transform: translateX(5px);
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 231, 255, 0.5);
  background: rgba(110, 231, 255, 0.06);
}

.btn-ghost i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid currentColor;
  position: relative;
}

.btn-ghost i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--cyan);
}

/* --------------------------------------------------------------------------
   玻璃拟态
   -------------------------------------------------------------------------- */
.glass-card {
  position: relative;
  background:
    linear-gradient(150deg, rgba(24, 35, 60, 0.52), rgba(7, 11, 24, 0.38) 52%, rgba(17, 22, 45, 0.46)),
    radial-gradient(circle at 85% 0%, rgba(110, 231, 255, 0.08), transparent 50%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition:
    transform 0.65s var(--ease-out),
    border-color 0.65s var(--ease-out),
    box-shadow 0.65s var(--ease-out);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.35), transparent 36%, transparent 68%, rgba(255, 210, 138, 0.22));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.65s var(--ease-out);
}

.glass-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.16), transparent 68%);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 1.2s var(--ease-out);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-7px);
  border-color: rgba(110, 231, 255, 0.3);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.46),
    0 0 60px rgba(110, 231, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card:hover::before {
  opacity: 0.85;
}

.glass-card:hover::after {
  opacity: 1;
  transform: translate(-26px, 34px) scale(1.2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 5px 10px;
  border: 1px solid rgba(180, 215, 255, 0.14);
  border-radius: 100px;
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.025);
  transition: color 0.4s, border-color 0.4s;
}

.glass-card:hover .chips span {
  color: rgba(220, 245, 255, 0.68);
  border-color: rgba(110, 231, 255, 0.25);
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad) 20px;
  background: linear-gradient(180deg, rgba(3, 5, 12, 0.76), rgba(3, 5, 12, 0.18) 72%, transparent);
  backdrop-filter: blur(2px);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition:
    opacity 1.1s var(--ease-out) 0.15s,
    transform 1.1s var(--ease-out) 0.15s;
}

body.site-ready .topbar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(110, 231, 255, 0.26);
  background: rgba(5, 10, 22, 0.4);
  box-shadow: inset 0 0 18px rgba(110, 231, 255, 0.08);
}

.brand-mark svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: rgba(220, 242, 255, 0.86);
  stroke-width: 0.8;
}

.brand-mark svg circle:first-child {
  stroke: rgba(255, 210, 138, 0.42);
}

.brand-mark svg .brand-star {
  fill: var(--gold);
  stroke: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1;
}

.brand-text em {
  font-style: normal;
  font-size: 7px;
  letter-spacing: 0.26em;
  color: var(--text-faint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 42px);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: rgba(227, 238, 255, 0.58);
  transition: color 0.4s var(--ease-out);
}

.nav-links a em {
  font-style: normal;
  font-family: var(--font-latin);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  transition: color 0.4s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(110, 231, 255, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #f2f8ff;
}

.nav-links a:hover em,
.nav-links a.is-active em {
  color: var(--cyan);
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.topbar-current {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(240, 248, 255, 0.82);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.4s, background 0.4s, color 0.4s;
}

.topbar-cta span {
  color: var(--gold);
  transition: transform 0.4s var(--ease-out);
}

.topbar-cta:hover {
  border-color: rgba(110, 231, 255, 0.4);
  background: rgba(110, 231, 255, 0.06);
  color: #fff;
}

.topbar-cta:hover span {
  transform: translate(2px, -2px);
}

/* 顶部滚动进度 */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 55;
  width: 100%;
  height: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
}

body.site-ready .scroll-progress {
  opacity: 1;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--scroll-progress));
  transform-origin: left;
  background: linear-gradient(90deg, transparent, var(--cyan) 24%, var(--purple) 60%, var(--gold));
  box-shadow: 0 0 12px rgba(110, 231, 255, 0.6);
}

/* --------------------------------------------------------------------------
   右侧分页轨
   -------------------------------------------------------------------------- */
.rail {
  position: fixed;
  right: clamp(12px, 1.6vw, 26px);
  top: 50%;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease-out) 0.35s;
}

body.site-ready .rail {
  opacity: 1;
  pointer-events: auto;
}

.rail-line {
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(165, 205, 255, 0.15), transparent);
}

.rail-dot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 18px;
  padding: 0 2px;
  color: var(--text-faint);
  z-index: 1;
}

.rail-dot i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid rgba(200, 225, 255, 0.28);
  background: #060a16;
  transition: all 0.45s var(--ease-out);
}

.rail-dot span {
  font-family: var(--font-latin);
  font-size: 8px;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateX(5px);
  transition: all 0.4s var(--ease-out);
}

.rail-dot b {
  position: absolute;
  right: 24px;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: rgba(235, 244, 255, 0.7);
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.4s var(--ease-out);
  pointer-events: none;
}

.rail-dot:hover b,
.rail-dot.is-active b {
  opacity: 1;
  transform: translateX(0);
}

.rail-dot.is-active i {
  width: 9px;
  height: 9px;
  border-color: rgba(110, 231, 255, 0.9);
  background: rgba(110, 231, 255, 0.18);
  box-shadow: 0 0 14px rgba(110, 231, 255, 0.85);
}

.rail-dot.is-active span {
  opacity: 1;
  transform: translateX(0);
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   自定义光标
   -------------------------------------------------------------------------- */
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor [data-cursor] {
  cursor: none;
}

.cursor {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor-dot,
.cursor-ring,
.cursor-glow {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  will-change: transform;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: #eafcff;
  box-shadow: 0 0 12px rgba(110, 231, 255, 0.9);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(198, 240, 255, 0.55);
  display: grid;
  place-items: center;
  transition:
    width 0.45s var(--ease-out),
    height 0.45s var(--ease-out),
    border-color 0.45s,
    background 0.45s;
}

.cursor.is-hover .cursor-ring {
  width: 62px;
  height: 62px;
  border-color: rgba(255, 210, 138, 0.58);
  background: rgba(255, 210, 138, 0.035);
}

.cursor-label {
  font-size: 7px;
  letter-spacing: 0.19em;
  color: var(--gold);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s, transform 0.35s;
}

.cursor.is-hover .cursor-label {
  opacity: 1;
  transform: scale(1);
}

.cursor-glow {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.075), rgba(167, 139, 250, 0.03) 38%, transparent 68%);
  filter: blur(8px);
}

.cursor.is-down .cursor-dot {
  transform: scale(0.6);
}

/* --------------------------------------------------------------------------
   颗粒 / 噪点
   -------------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: -20%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.028;
  mix-blend-mode: normal;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

/* 中低画质时主动关闭大面积毛玻璃采样 */
body[data-quality="medium"] .glass-card,
body[data-quality="medium"] .lit-card,
body[data-quality="medium"] .atlas-panel,
body[data-quality="medium"] .frame-card {
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

body[data-quality="low"] .glass-card,
body[data-quality="low"] .lit-card,
body[data-quality="low"] .atlas-panel,
body[data-quality="low"] .frame-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: rgba(8, 13, 26, 0.93);
}

body[data-quality="low"] .grain {
  display: none;
}

body[data-quality="low"] .modal-backdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(2, 4, 10, 0.9);
}

/* --------------------------------------------------------------------------
   辅助组件
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 100px;
  background: #f2fbff;
  color: #06121c;
  font-size: 12px;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 16px;
}

.fps {
  position: fixed;
  left: 18px;
  bottom: 15px;
  z-index: 85;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(200, 230, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

body.show-fps .fps {
  opacity: 1;
}

.fps b {
  font-weight: 400;
  color: var(--cyan);
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #04060f;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.08em;
}

/* 首页点击涟漪 */
.shockwave {
  position: fixed;
  z-index: 34;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  border: 1px solid rgba(110, 231, 255, 0.55);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.2);
}

.shockwave.is-live {
  animation: shockwave 1.05s var(--ease-out) forwards;
}

@keyframes shockwave {
  0% {
    opacity: 0.8;
    transform: scale(0.2);
    box-shadow: 0 0 0 0 rgba(110, 231, 255, 0.22);
  }
  55% {
    opacity: 0.35;
    border-color: rgba(255, 210, 138, 0.35);
  }
  100% {
    opacity: 0;
    transform: scale(28);
    box-shadow: 0 0 70px 14px rgba(110, 231, 255, 0.02);
  }
}

/* --------------------------------------------------------------------------
   动效关键字
   -------------------------------------------------------------------------- */
@keyframes dotPulse {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 6px var(--cyan); }
  50% { opacity: 1; box-shadow: 0 0 16px var(--cyan); }
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(2%, 2%); }
  80% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   响应式基础
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .topbar-right .topbar-current {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .topbar {
    padding: 18px 20px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark svg {
    width: 26px;
    height: 26px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .topbar-cta {
    height: 34px;
    padding: 0 13px;
    font-size: 9px;
  }

  .rail {
    right: 9px;
    gap: 11px;
  }

  .rail-dot b {
    display: none;
  }

  .section-title {
    font-size: clamp(2.6rem, 10vw, 4.4rem);
  }
}

@media (max-width: 760px) {
  .pages {
    scroll-snap-type: y proximity;
  }

  .page {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
  }

  .grain {
    opacity: 0.04;
  }

  .rail-dot span {
    display: none;
  }

  .cursor,
  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
